package com.gsmr.controller;

import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.gsmr.entity.GPRSDefaultCount;
import com.gsmr.entity.GPRSFullCount;
import com.gsmr.entity.Index;
import com.gsmr.entity.PageBean;
import com.gsmr.entity.SacchCount;
import com.gsmr.entity.ServiceCount;
import com.gsmr.entity.SignalingCount;
import com.gsmr.service.NetworkAnalysisService;
import com.gsmr.util.ExcelUtil;
import com.gsmr.util.FormatDate;
import com.gsmr.util.ResponseUtil;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
@Controller
@RequestMapping("/networkanalysis")
public class NetworkAnalysisController {
	
	@Resource
	private NetworkAnalysisService networkAnalysisService;
	
	/**
	 * 话务统计
	 * 
	 * @param page
	 * @param rows
	 * @param s_user
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/list")
	public String list(@RequestParam(value="page",required=false)String page,@RequestParam(value="rows",required=false)String rows,
			@RequestParam(value="startTime",required=false)String startTime,@RequestParam(value="endTime",required=false)String endTime,
			@RequestParam(value="district",required=false)String district,@RequestParam(value="SacchType",required=false)String SacchType,
			@RequestParam(value="SignalingType",required=false)String SignalingType,@RequestParam(value="ServiceType",required=false)String ServiceType,
			@RequestParam(value="GPRSDefaultType",required=false)String GPRSDefaultType,@RequestParam(value="GPRSFullType",required=false)String GPRSFullType,
		@RequestParam(value = "timegap", required = false) String timegap, @RequestParam(value = "judge", required = false) String judge, @RequestParam(value = "sort", required = false) String sort, @RequestParam(value = "order", required = false) String order,
			HttpServletResponse response)throws Exception{
		System.out.println("SacchType:"+SacchType);
		System.out.println("GPRSDefaultType:"+GPRSDefaultType);
		System.out.println(district);
		if (district == null || district == "") {
			System.out.println("未选择前置机号");
			Map<String, Object> map = new HashMap<String, Object>();
			map.put("table_name", "bs_info");
			List<Integer> turnUse = networkAnalysisService.get_front_ids(null);
			for (int i = 0; i < turnUse.size(); i++) {
				map.put("frontId", turnUse.get(i));
				String bs_name = networkAnalysisService.get_bs_name(map);
				if (bs_name == null || bs_name.length() < 1 || bs_name.equals("null")) continue;
				district = district + "," + bs_name;
			}
			System.out.println(district);
			district = district.substring(1);
			System.out.println(district);
			
		}
		PageBean pageBean=new PageBean(Integer.parseInt(page.trim()),Integer.parseInt(rows.trim()));
		Map<String,Object> map=new HashMap<String,Object>();

		map.put("districtAll", district);

		map.put("start", pageBean.getStart());
		if(startTime!=null&&!startTime.equals("NaN")){
			map.put("startTime", startTime);
		}
		if(endTime!=null&&!endTime.equals("NaN")){
			map.put("endTime", endTime);
		}
		
		System.out.println("开始时间："+startTime);
		System.out.println("结束时间："+endTime);

		// 设定startCal和endCal,利用Calendar日期工具
		Calendar startCal = Calendar.getInstance();
		Calendar endCal = Calendar.getInstance();
		if (startTime != null && !startTime.equals("NaN")) {
			startCal.setTimeInMillis(Long.parseLong(startTime));
		}
		if (endTime != null && !endTime.equals("NaN")) {
			endCal.setTimeInMillis(Long.parseLong(endTime));
		}

		// 获取表名日期
		DateFormat f = new SimpleDateFormat("yyyyMM");
		String DateYM = f.format(startCal.getTime());

		// 选择的小区数
		int front_Num = 0;
		
		// 前置号与CI和BSName的映射，用于前端显示
		Map<Integer,String> map_bs_name=new HashMap<Integer,String>();
		Map<Integer,Integer> map_CI_name=new HashMap<Integer,Integer>();

		// 将BSName转化成前置机号
		if(district!=null&&!district.equals("")){
			String[] subdistrict=district.split(",");
			front_Num = subdistrict.length;
			String[] frontID=new String[subdistrict.length];
			int[] frontCI=new int[subdistrict.length];
			for(int i=0;i<subdistrict.length;i++) {
				if(subdistrict[i].equals(""))
					continue;
				map.put("frontId", subdistrict[i]);
				map.put("table_name","bs_info");
				frontID[i]=networkAnalysisService.get_frontId(map);
				frontCI[i]=networkAnalysisService.get_CI(map);
				map_bs_name.put(Integer.parseInt(frontID[i]), subdistrict[i]);
				map_CI_name.put(Integer.parseInt(frontID[i]), frontCI[i]);
			}
			List<String> subList=Arrays.asList(frontID);
			map.put("district", subList);
			System.out.println("已选择前置机号：" + subList);
			
		}
		else{
			map.put("district", "");
		}
				

		List<SacchCount> sacchList = new ArrayList<>();
		List<SignalingCount> signalingList = new ArrayList<>();
		List<ServiceCount> serviceList = new ArrayList<>();
		List<GPRSDefaultCount> gprsDefaultList = new ArrayList<>();
		List<GPRSFullCount> gprsFullList = new ArrayList<>();
		
		//判断被选中的类型，若没选中则不查询数据库
		// 若不是1月，则组合所有list
		
		if (timegap != null && !timegap.equals("1月")) {
			if (SacchType != null && !SacchType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SacchCount> subsacchList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "sacch_count_" + DateYM);
						subsacchList = networkAnalysisService.find_sacch(map);
						System.out.println("第" + i + "个subList长度：" + subsacchList.size());
						sacchList.addAll(subsacchList);
						subsacchList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "sacch_count_" + DateYM);
					sacchList = networkAnalysisService.find_sacch(map);
				}

			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if ((SignalingType != null && !SignalingType.equals("")) || (ServiceType != null && !ServiceType.equals(""))) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SignalingCount> subsignalingList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "signaling_count_" + DateYM);
						subsignalingList = networkAnalysisService.find_signaling(map);
						System.out.println("第" + i + "个subList长度：" + subsignalingList.size());
						signalingList.addAll(subsignalingList);
						subsignalingList.clear();
					}
				} else {
					System.out.println("未组合SignalingList");
					map.put("table_name", "signaling_count_" + DateYM);
					signalingList = networkAnalysisService.find_signaling(map);
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (ServiceType != null && !ServiceType.equals("")) {
		
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<ServiceCount> subserviceList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "service_count_" + DateYM);
						subserviceList = networkAnalysisService.find_service(map);
						System.out.println("第" + i + "个subList长度：" + subserviceList.size());
						serviceList.addAll(subserviceList);
						subserviceList.clear();
					}
				} else {
					System.out.println("未组合ServiceList");
					map.put("table_name", "service_count_" + DateYM);
					serviceList = networkAnalysisService.find_service(map);
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));
			
			if (GPRSDefaultType != null && !GPRSDefaultType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<GPRSDefaultCount> subGprsDefaultList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_default_count_" + DateYM);
						subGprsDefaultList = networkAnalysisService.find_gprsDefault(map);
						System.out.println("第" + i + "个subList长度：" + subGprsDefaultList.size());
						gprsDefaultList.addAll(subGprsDefaultList);
						subGprsDefaultList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "gprs_default_count_" + DateYM);
					gprsDefaultList = networkAnalysisService.find_gprsDefault(map);
				}

			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));
			
			if (GPRSFullType != null && !GPRSFullType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<GPRSFullCount> subGprsFullList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subGprsFullList = networkAnalysisService.find_gprsFull(map);
						System.out.println("第" + i + "个subList长度：" + subGprsFullList.size());
						gprsFullList.addAll(subGprsFullList);
						subGprsFullList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsFullList = networkAnalysisService.find_gprsFull(map);
				}

			}

			//startCal.setTimeInMillis(Long.parseLong(startTime));
		//	endCal.setTimeInMillis(Long.parseLong(endTime));
			
			
			System.out.println("SACCHList长度" + sacchList.size());
			System.out.println("SignalingList长度" + signalingList.size());
			System.out.println("ServiceList长度" + serviceList.size());
		}
		
		
		List<Index> indexList = new ArrayList<>();
		map.put("size", pageBean.getPageSize());
		JSONObject result=new JSONObject();		
				
		JSONArray jsonArray = new JSONArray();
		List<SacchCount> sacchList_new = new ArrayList<>();
		List<SignalingCount> signalingList_new = new ArrayList<>();
		List<ServiceCount> serviceList_new = new ArrayList<>();
		List<GPRSDefaultCount> gprsDefaultList_new = new ArrayList<>();
		List<GPRSFullCount> gprsFullList_new = new ArrayList<>();
		
		// 若时间强度为15分钟，直接整合
		if (timegap != null && timegap.equals("15分钟")) {
			indexList = get_test(SacchType,sacchList,SignalingType,signalingList,ServiceType,serviceList,GPRSDefaultType,gprsDefaultList,GPRSFullType,gprsFullList,map_bs_name,map_CI_name);
		}
		
		// 若时间强度为1小时，分别对5个List组合，再整合
		if (timegap != null && timegap.equals("1小时")) {
			sacchList_new = comboSacchListToHour(front_Num, sacchList,4,"1小时");
			signalingList_new = comboSignalingListToHour(front_Num, signalingList,4,"1小时");
			serviceList_new = comboServiceListToHour(front_Num, serviceList,4,"1小时");
			gprsDefaultList_new = comboGPRSDefaultListToHour(front_Num, gprsDefaultList,4,"1小时");
			gprsFullList_new = comboGPRSFullListToHour(front_Num, gprsFullList,4,"1小时");
			indexList = get_test(SacchType,sacchList_new,SignalingType,signalingList_new,ServiceType,serviceList_new,GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name,map_CI_name);
		}
		
		// 若时间强度为1天，分别对5个List组合，再整合
		if (timegap != null && timegap.equals("1天")) {
			sacchList_new = comboSacchListToHour(front_Num, sacchList,96,"1天");
			signalingList_new = comboSignalingListToHour(front_Num, signalingList,96,"1天");
			serviceList_new = comboServiceListToHour(front_Num, serviceList,96,"1天");
			gprsDefaultList_new = comboGPRSDefaultListToHour(front_Num, gprsDefaultList,96,"1天");
			gprsFullList_new =  comboGPRSFullListToHour(front_Num, gprsFullList,96,"1天");
			indexList = get_test(SacchType,sacchList_new,SignalingType,signalingList_new,ServiceType,serviceList_new,GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name,map_CI_name);
		}

		// 若时间强度为1月，分别查询多个月表，分别进行组合，再整合
		if (timegap != null && timegap.equals("1月")) {
			if (SacchType != null && !SacchType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SacchCount> subsacchList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "sacch_count_" + DateYM);
						subsacchList = networkAnalysisService.find_sacch(map);
						sacchList = comboSacchListToMonth(front_Num, subsacchList, "");
						sacchList_new.addAll(sacchList);

					}
				} else {
					map.put("table_name", "sacch_count_" + DateYM);
					sacchList = networkAnalysisService.find_sacch(map);
					sacchList_new = comboSacchListToMonth(front_Num, sacchList, "");
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if ((SignalingType != null && !SignalingType.equals("")) || (ServiceType != null && !ServiceType.equals(""))) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SignalingCount> subsignalingList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "signaling_count_" + DateYM);
						subsignalingList = networkAnalysisService.find_signaling(map);
						signalingList = comboSignalingListToMonth(front_Num, subsignalingList, "");
						signalingList_new.addAll(signalingList);

					}
				} else {
					map.put("table_name", "signaling_count_" + DateYM);
					signalingList = networkAnalysisService.find_signaling(map);
					signalingList_new = comboSignalingListToMonth(front_Num, signalingList, "");
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (ServiceType != null && !ServiceType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<ServiceCount> subserviceList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "service_count_" + DateYM);
						subserviceList = networkAnalysisService.find_service(map);
						serviceList = comboServiceListToMonth(front_Num, subserviceList, "");
						serviceList_new.addAll(serviceList);

					}
				} else {
					map.put("table_name", "service_count_" + DateYM);
					serviceList = networkAnalysisService.find_service(map);
					serviceList_new = comboServiceListToMonth(front_Num, serviceList, "");
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (GPRSDefaultType != null && !GPRSDefaultType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<GPRSDefaultCount> subgprsdefaultList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subgprsdefaultList = networkAnalysisService.find_gprsDefault(map);
						gprsDefaultList = comboGPRSDefaultListToMonth(front_Num, subgprsdefaultList, "");
						gprsDefaultList_new.addAll(gprsDefaultList);

					}
				} else {
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsDefaultList = networkAnalysisService.find_gprsDefault(map);
					gprsDefaultList_new = comboGPRSDefaultListToMonth(front_Num, gprsDefaultList, "");
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (GPRSFullType != null && !GPRSFullType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<GPRSFullCount> subgprsfullList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subgprsfullList = networkAnalysisService.find_gprsFull(map);
						gprsFullList = comboGPRSFullListToMonth(front_Num, subgprsfullList, "");
						gprsFullList_new.addAll(gprsFullList);

					}
				} else {
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsFullList = networkAnalysisService.find_gprsFull(map);
					gprsFullList_new = comboGPRSFullListToMonth(front_Num, gprsFullList, "");
				}
			}
			
			
			indexList = get_test(SacchType, sacchList_new, SignalingType, signalingList_new, ServiceType, serviceList_new, GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name, map_CI_name);

		}

		if (timegap != null && timegap.equals("总计")) {
			sacchList_new = comboSacchListToMonth(front_Num, sacchList, "总计");
			signalingList_new = comboSignalingListToMonth(front_Num, signalingList, "总计");
			serviceList_new = comboServiceListToMonth(front_Num, serviceList, "总计");
			gprsDefaultList_new = comboGPRSDefaultListToMonth(front_Num, gprsDefaultList, "");
			gprsFullList_new = comboGPRSFullListToMonth(front_Num, gprsFullList, "总计");
			indexList = get_test(SacchType, sacchList_new, SignalingType, signalingList_new, ServiceType, serviceList_new, GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name, map_CI_name);
		}

		if (judge != null && judge.equals("是")) {
			List<Index> indexList_sub = new ArrayList<>();
			indexList_sub = indexList;
			indexList = comboIndex(front_Num, indexList_sub);
		}

		int total=indexList.size();
		if (sort != null && sort.equals("index_value") && order.equals("asc")) {
			System.out.println("进入排序");
			Collections.sort(indexList, new Comparator<Index>() {
				@Override
				public int compare(Index arg0, Index arg1) {
					int i = 0;
					if (arg0.getIndex_value().equals("无") && arg1.getIndex_value().equals("无")) {
						i = 0;
					} else if (arg0.getIndex_value().equals("无") && !arg1.getIndex_value().equals("无")) {
						i = 1;
					} else if (arg1.getIndex_value().equals("无") && !arg0.getIndex_value().equals("无")) {
						i = -1;
					} else {
						String com_1 = arg0.getIndex_value().replace("%", "");
						String com_2 = arg1.getIndex_value().replace("%", "");
						if (Double.parseDouble(com_1) > Double.parseDouble(com_2)) {
							i = -1;
						} else if (Double.parseDouble(com_1) < Double.parseDouble(com_2)) {
							i = 1;
						} else if (Double.parseDouble(com_1) == Double.parseDouble(com_2)) {
							i = 0;
						}
					}

					return i;

				}
			});
		}
		List<Index> subIndexList = new ArrayList<>();
		try {
			subIndexList = indexList.subList((pageBean.getPage() - 1) * pageBean.getPageSize(), pageBean.getPage() * pageBean.getPageSize());

			System.out.println("subIndexList长度" + subIndexList.size());
			jsonArray = JSONArray.fromObject(subIndexList);
		} catch(Exception e) {
			subIndexList = indexList.subList((pageBean.getPage() - 1) * pageBean.getPageSize(), total);
			jsonArray = JSONArray.fromObject(subIndexList);
		}
		
		
		result.put("rows", jsonArray);
		result.put("total", total);								
		ResponseUtil.write(response, result);
		return null;
		
	}
	
	@RequestMapping("/export")
	public String exportToexcel(@RequestParam(value = "startTime", required = false) String startTime, 
		@RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "district", required = false) String district, 
		@RequestParam(value = "SacchType", required = false) String SacchType, @RequestParam(value = "SignalingType", required = false) String SignalingType, 
		@RequestParam(value = "ServiceType", required = false) String ServiceType,@RequestParam(value="GPRSDefaultType",required=false)String GPRSDefaultType,@RequestParam(value="GPRSFullType",required=false)String GPRSFullType,
		@RequestParam(value = "timegap", required = false) String timegap, 
		@RequestParam(value = "judge", required = false) String judge, @RequestParam(value = "sort", required = false) String sort, @RequestParam(value = "order", required = false) String order, HttpServletResponse response) throws Exception {

		Workbook wb = new HSSFWorkbook();
		String headers[] = { "前置机名称", "前置机小区CI", "日期", "时间段", "指标名称", "指标分子", "指标分母", "指标" };

		Map<String, Object> map = new HashMap<String, Object>();

		map.put("districtAll", district);

		if (startTime != null && !startTime.equals("NaN")) {
			map.put("startTime", startTime);
		}
		if (endTime != null && !endTime.equals("NaN")) {
			map.put("endTime", endTime);
		}

		System.out.println("开始时间：" + startTime);
		System.out.println("结束时间：" + endTime);

		// 设定startCal和endCal,利用Calendar日期工具
		Calendar startCal = Calendar.getInstance();
		Calendar endCal = Calendar.getInstance();
		if (startTime != null && !startTime.equals("NaN")) {
			startCal.setTimeInMillis(Long.parseLong(startTime));
		}
		if (endTime != null && !endTime.equals("NaN")) {
			endCal.setTimeInMillis(Long.parseLong(endTime));
		}

		// 获取表名日期
		DateFormat f = new SimpleDateFormat("yyyyMM");
		String DateYM = f.format(startCal.getTime());

		// 选择的小区数
		int front_Num = 0;
		
		// 前置号与CI和BSName的映射，用于前端显示
		Map<Integer,String> map_bs_name=new HashMap<Integer,String>();
		Map<Integer,Integer> map_CI_name=new HashMap<Integer,Integer>();

		// 将BSName转化成前置机号
		if(district!=null&&!district.equals("")){
			String[] subdistrict=district.split(",");
			front_Num = subdistrict.length;
			String[] frontID=new String[subdistrict.length];
			int[] frontCI=new int[subdistrict.length];
			for(int i=0;i<subdistrict.length;i++) {
				if(subdistrict[i].equals(""))
					continue;
				map.put("frontId", subdistrict[i]);
				map.put("table_name","bs_info");
				frontID[i]=networkAnalysisService.get_frontId(map);
				frontCI[i]=networkAnalysisService.get_CI(map);
				map_bs_name.put(Integer.parseInt(frontID[i]), subdistrict[i]);
				map_CI_name.put(Integer.parseInt(frontID[i]), frontCI[i]);
			}
			List<String> subList=Arrays.asList(frontID);
			map.put("district", subList);
			System.out.println("已选择前置机号：" + subList);
			
		}
		else{
			map.put("district", "");
		}
				

		List<SacchCount> sacchList = new ArrayList<>();
		List<SignalingCount> signalingList = new ArrayList<>();
		List<ServiceCount> serviceList = new ArrayList<>();
		List<GPRSDefaultCount> gprsDefaultList = new ArrayList<>();
		List<GPRSFullCount> gprsFullList = new ArrayList<>();
		
		//判断被选中的类型，若没选中则不查询数据库
		// 若不是1月，则组合所有list
		
		if (timegap != null && !timegap.equals("1月")) {
			if (SacchType != null && !SacchType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SacchCount> subsacchList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "sacch_count_" + DateYM);
						subsacchList = networkAnalysisService.find_sacch(map);
						System.out.println("第" + i + "个subList长度：" + subsacchList.size());
						sacchList.addAll(subsacchList);
						subsacchList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "sacch_count_" + DateYM);
					sacchList = networkAnalysisService.find_sacch(map);
				}

			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if ((SignalingType != null && !SignalingType.equals("")) || (ServiceType != null && !ServiceType.equals(""))) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SignalingCount> subsignalingList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "signaling_count_" + DateYM);
						subsignalingList = networkAnalysisService.find_signaling(map);
						System.out.println("第" + i + "个subList长度：" + subsignalingList.size());
						signalingList.addAll(subsignalingList);
						subsignalingList.clear();
					}
				} else {
					System.out.println("未组合SignalingList");
					map.put("table_name", "signaling_count_" + DateYM);
					signalingList = networkAnalysisService.find_signaling(map);
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (ServiceType != null && !ServiceType.equals("")) {
		
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<ServiceCount> subserviceList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "service_count_" + DateYM);
						subserviceList = networkAnalysisService.find_service(map);
						System.out.println("第" + i + "个subList长度：" + subserviceList.size());
						serviceList.addAll(subserviceList);
						subserviceList.clear();
					}
				} else {
					System.out.println("未组合ServiceList");
					map.put("table_name", "service_count_" + DateYM);
					serviceList = networkAnalysisService.find_service(map);
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));
			
			if (GPRSDefaultType != null && !GPRSDefaultType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<GPRSDefaultCount> subGprsDefaultList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_default_count_" + DateYM);
						subGprsDefaultList = networkAnalysisService.find_gprsDefault(map);
						System.out.println("第" + i + "个subList长度：" + subGprsDefaultList.size());
						gprsDefaultList.addAll(subGprsDefaultList);
						subGprsDefaultList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "gprs_default_count_" + DateYM);
					gprsDefaultList = networkAnalysisService.find_gprsDefault(map);
				}

			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));
			
			if (GPRSFullType != null && !GPRSFullType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<GPRSFullCount> subGprsFullList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subGprsFullList = networkAnalysisService.find_gprsFull(map);
						System.out.println("第" + i + "个subList长度：" + subGprsFullList.size());
						gprsFullList.addAll(subGprsFullList);
						subGprsFullList.clear();

					}
				} else {
					System.out.println("未组合SacchList");
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsFullList = networkAnalysisService.find_gprsFull(map);
				}

			}

			//startCal.setTimeInMillis(Long.parseLong(startTime));
		//	endCal.setTimeInMillis(Long.parseLong(endTime));
			
			
			System.out.println("SACCHList长度" + sacchList.size());
			System.out.println("SignalingList长度" + signalingList.size());
			System.out.println("ServiceList长度" + serviceList.size());
		}
		
		
		List<Index> indexList = new ArrayList<>();
		//map.put("size", pageBean.getPageSize());
		JSONObject result=new JSONObject();		
				
		JSONArray jsonArray = new JSONArray();
		List<SacchCount> sacchList_new = new ArrayList<>();
		List<SignalingCount> signalingList_new = new ArrayList<>();
		List<ServiceCount> serviceList_new = new ArrayList<>();
		List<GPRSDefaultCount> gprsDefaultList_new = new ArrayList<>();
		List<GPRSFullCount> gprsFullList_new = new ArrayList<>();
		
		// 若时间强度为15分钟，直接整合
		if (timegap != null && timegap.equals("15分钟")) {
			indexList = get_test(SacchType,sacchList,SignalingType,signalingList,ServiceType,serviceList,GPRSDefaultType,gprsDefaultList,GPRSFullType,gprsFullList,map_bs_name,map_CI_name);
		}
		
		// 若时间强度为1小时，分别对5个List组合，再整合
		if (timegap != null && timegap.equals("1小时")) {
			sacchList_new = comboSacchListToHour(front_Num, sacchList,4,"1小时");
			signalingList_new = comboSignalingListToHour(front_Num, signalingList,4,"1小时");
			serviceList_new = comboServiceListToHour(front_Num, serviceList,4,"1小时");
			gprsDefaultList_new = comboGPRSDefaultListToHour(front_Num, gprsDefaultList,4,"1小时");
			gprsFullList_new = comboGPRSFullListToHour(front_Num, gprsFullList,4,"1小时");
			indexList = get_test(SacchType,sacchList_new,SignalingType,signalingList_new,ServiceType,serviceList_new,GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name,map_CI_name);
		}
		
		// 若时间强度为1天，分别对5个List组合，再整合
		if (timegap != null && timegap.equals("1天")) {
			sacchList_new = comboSacchListToHour(front_Num, sacchList,96,"1天");
			signalingList_new = comboSignalingListToHour(front_Num, signalingList,96,"1天");
			serviceList_new = comboServiceListToHour(front_Num, serviceList,96,"1天");
			gprsDefaultList_new = comboGPRSDefaultListToHour(front_Num, gprsDefaultList,96,"1天");
			gprsFullList_new =  comboGPRSFullListToHour(front_Num, gprsFullList,96,"1天");
			indexList = get_test(SacchType,sacchList_new,SignalingType,signalingList_new,ServiceType,serviceList_new,GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name,map_CI_name);
		}

		// 若时间强度为1月，分别查询多个月表，分别进行组合，再整合
		if (timegap != null && timegap.equals("1月")) {
			if (SacchType != null && !SacchType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SacchCount> subsacchList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "sacch_count_" + DateYM);
						subsacchList = networkAnalysisService.find_sacch(map);
						sacchList = comboSacchListToMonth(front_Num, subsacchList, "");
						sacchList_new.addAll(sacchList);

					}
				} else {
					map.put("table_name", "sacch_count_" + DateYM);
					sacchList = networkAnalysisService.find_sacch(map);
					sacchList_new = comboSacchListToMonth(front_Num, sacchList, "");
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if ((SignalingType != null && !SignalingType.equals("")) || (ServiceType != null && !ServiceType.equals(""))) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					List<SignalingCount> subsignalingList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "signaling_count_" + DateYM);
						subsignalingList = networkAnalysisService.find_signaling(map);
						signalingList = comboSignalingListToMonth(front_Num, subsignalingList, "");
						signalingList_new.addAll(signalingList);

					}
				} else {
					map.put("table_name", "signaling_count_" + DateYM);
					signalingList = networkAnalysisService.find_signaling(map);
					signalingList_new = comboSignalingListToMonth(front_Num, signalingList, "");
				}
			}

			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (ServiceType != null && !ServiceType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<ServiceCount> subserviceList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "service_count_" + DateYM);
						subserviceList = networkAnalysisService.find_service(map);
						serviceList = comboServiceListToMonth(front_Num, subserviceList, "");
						serviceList_new.addAll(serviceList);

					}
				} else {
					map.put("table_name", "service_count_" + DateYM);
					serviceList = networkAnalysisService.find_service(map);
					serviceList_new = comboServiceListToMonth(front_Num, serviceList, "");
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (GPRSDefaultType != null && !GPRSDefaultType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<GPRSDefaultCount> subgprsdefaultList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subgprsdefaultList = networkAnalysisService.find_gprsDefault(map);
						gprsDefaultList = comboGPRSDefaultListToMonth(front_Num, subgprsdefaultList, "");
						gprsDefaultList_new.addAll(gprsDefaultList);

					}
				} else {
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsDefaultList = networkAnalysisService.find_gprsDefault(map);
					gprsDefaultList_new = comboGPRSDefaultListToMonth(front_Num, gprsDefaultList, "");
				}
			}
			
			startCal.setTimeInMillis(Long.parseLong(startTime));
			endCal.setTimeInMillis(Long.parseLong(endTime));

			if (GPRSFullType != null && !GPRSFullType.equals("")) {
				if (startCal.get(Calendar.MONTH) != endCal.get(Calendar.MONTH)) {
					System.out.println("进入判断");
					List<GPRSFullCount> subgprsfullList = new ArrayList<>();
					for (int i = 0; i <= endCal.get(Calendar.MONTH) - startCal.get(Calendar.MONTH); i++) {
						startCal.add(startCal.MONTH, i);
						DateYM = f.format(startCal.getTime());
						map.put("table_name", "gprs_full_count_" + DateYM);
						subgprsfullList = networkAnalysisService.find_gprsFull(map);
						gprsFullList = comboGPRSFullListToMonth(front_Num, subgprsfullList, "");
						gprsFullList_new.addAll(gprsFullList);

					}
				} else {
					map.put("table_name", "gprs_full_count_" + DateYM);
					gprsFullList = networkAnalysisService.find_gprsFull(map);
					gprsFullList_new = comboGPRSFullListToMonth(front_Num, gprsFullList, "");
				}
			}
			
			
			indexList = get_test(SacchType, sacchList_new, SignalingType, signalingList_new, ServiceType, serviceList_new, GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name, map_CI_name);

		}

		if (timegap != null && timegap.equals("总计")) {
			sacchList_new = comboSacchListToMonth(front_Num, sacchList, "总计");
			signalingList_new = comboSignalingListToMonth(front_Num, signalingList, "总计");
			serviceList_new = comboServiceListToMonth(front_Num, serviceList, "总计");
			gprsDefaultList_new = comboGPRSDefaultListToMonth(front_Num, gprsDefaultList, "");
			gprsFullList_new = comboGPRSFullListToMonth(front_Num, gprsFullList, "总计");
			indexList = get_test(SacchType, sacchList_new, SignalingType, signalingList_new, ServiceType, serviceList_new, GPRSDefaultType,gprsDefaultList_new,GPRSFullType,gprsFullList_new,map_bs_name, map_CI_name);
		}

		if (judge != null && judge.equals("是")) {
			List<Index> indexList_sub = new ArrayList<>();
			indexList_sub = indexList;
			indexList = comboIndex(front_Num, indexList_sub);
		}

		int total=indexList.size();
		if (sort != null && sort.equals("index_value") && order.equals("asc")) {
			System.out.println("进入排序");
			Collections.sort(indexList, new Comparator<Index>() {
				@Override
				public int compare(Index arg0, Index arg1) {
					int i = 0;
					if (arg0.getIndex_value().equals("无") && arg1.getIndex_value().equals("无")) {
						i = 0;
					} else if (arg0.getIndex_value().equals("无") && !arg1.getIndex_value().equals("无")) {
						i = 1;
					} else if (arg1.getIndex_value().equals("无") && !arg0.getIndex_value().equals("无")) {
						i = -1;
					} else {
						String com_1 = arg0.getIndex_value().replace("%", "");
						String com_2 = arg1.getIndex_value().replace("%", "");
						if (Double.parseDouble(com_1) > Double.parseDouble(com_2)) {
							i = -1;
						} else if (Double.parseDouble(com_1) < Double.parseDouble(com_2)) {
							i = 1;
						} else if (Double.parseDouble(com_1) == Double.parseDouble(com_2)) {
							i = 0;
						}
					}

					return i;

				}
			});
		}

		try {
			ExcelUtil.fillExcelData_NetworkAnalysis(indexList, wb, headers);
			ResponseUtil.export(response, wb, "导出excel" + FormatDate.formatDate() + ".xls");
		} catch (Exception e) {
			e.printStackTrace();
		}

		return null;

	}
	
	/**
	 * 查询所有前置机  下拉框用到
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/frontId")
	public String groupComboList(HttpServletResponse response)throws Exception{
		 Map<String,Object> map=new HashMap<String,Object>();
		JSONArray jsonArray=new JSONArray();
		JSONObject jsonObject=new JSONObject();
		
		JSONArray jsonArray1=new JSONArray();
		JSONObject jsonObject1=new JSONObject();
		
		//jsonArray.add(jsonObject);
		map.put("table_name","bs_info");
		List<Integer> frontIdList=networkAnalysisService.get_front_ids(null);
		// System.out.println(frontIdList.toString());
		for(int i=0;i<frontIdList.size();i++)
		{
			jsonObject.put("id", i);
			map.put("frontId",frontIdList.get(i));
			String bs_name=networkAnalysisService.get_bs_name(map);
			if (bs_name == null || bs_name.length() < 1 || bs_name.equals("null")) continue;
			jsonObject.put("name",bs_name);
			jsonObject.put("text",bs_name);
			jsonArray.add(jsonObject);
			
		}
		//System.out.println(jsonArray);
		jsonObject1.put("id", 1000);
		jsonObject1.put("name", "全选");
		jsonObject1.put("text", "全选");
		jsonObject1.put("children", jsonArray);
		jsonArray1.add(jsonObject1);
		ResponseUtil.write(response, jsonArray1);
		return null;
	}
	/**
	 * 所有的类型  下拉框用到
	 * @param response
	 * @return
	 * @throws Exception
	 */
	
	@RequestMapping("/timegaplist")
	public String timeList(HttpServletResponse response)throws Exception{
		JSONArray jsonArray=new JSONArray();
		JSONObject jsonObject=new JSONObject();
		jsonObject.put("id", -1);
		jsonObject.put("name", "");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 0);
		jsonObject.put("name","15分钟");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 1);
		jsonObject.put("name","1小时");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 2);
		jsonObject.put("name","1天");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 3);
		jsonObject.put("name","1月");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 4);
		jsonObject.put("name", "总计");
		jsonArray.add(jsonObject);

		ResponseUtil.write(response, jsonArray);
		return null;
	}

	@RequestMapping("/judgelist")
	public String judgeList(HttpServletResponse response) throws Exception {
		JSONArray jsonArray = new JSONArray();
		JSONObject jsonObject = new JSONObject();
		jsonObject.put("id", -1);
		jsonObject.put("name", "");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 0);
		jsonObject.put("name", "否");
		jsonArray.add(jsonObject);
		jsonObject.put("id", 1);
		jsonObject.put("name", "是");
		jsonArray.add(jsonObject);
		
		ResponseUtil.write(response, jsonArray);
		return null;
	}
	
	
	private static List<Index> get_test(String saType, List<SacchCount> saList, String siType, List<SignalingCount> siList, String seType, List<ServiceCount> seList, String gdType, List<GPRSDefaultCount> gdList, String gfType, List<GPRSFullCount> gfList, Map map_1, Map map_2) {
		List<Index> inList = new ArrayList<>();	
		DecimalFormat df = new DecimalFormat("0.00");
		String[] sa_Type = saType.split("\\,");
		String[] si_Type = siType.split("\\,");
		String[] se_Type = seType.split("\\,");
		String[] gd_Type = gdType.split("\\,");
		String[] gf_Type = gfType.split("\\,");
		for(int i=0; i<sa_Type.length; i++) {
			if (sa_Type[i].equals("下行接收电平") || sa_Type[i].equals("下行接收质量") || sa_Type[i].equals("接收TA值")) {
				continue;
			}
			if(sa_Type[i].startsWith("下行接收电平")) {
				for(int j=0; j<saList.size(); j++) {
					Index ind=new Index();
					ind.setBsName((String)map_1.get(saList.get(j).getFrontProcessorId()));
					ind.setBsCI(String.valueOf(map_2.get(saList.get(j).getFrontProcessorId())));
					ind.setDate(saList.get(j).getDate());
					ind.setTimeslot(saList.get(j).getTimeSlot());
					if(sa_Type[i].equals("下行接收电平0级比例")) {
						ind.setIndex_name("下行接收电平0级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_47_50()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_LEV_Full_47_50()/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平1级比例")) {
						ind.setIndex_name("下行接收电平1级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_51_55()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_LEV_Full_51_55()/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平2级比例")) {
						ind.setIndex_name("下行接收电平2级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_56_60()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_LEV_Full_56_60()/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平3级比例")) {
						ind.setIndex_name("下行接收电平3级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_61_65()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_LEV_Full_61_65()/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平4级比例")) {
						ind.setIndex_name("下行接收电平4级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_66_70()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_LEV_Full_61_65()/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平5级比例")) {
						ind.setIndex_name("下行接收电平5级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_71_75()+saList.get(j).getRX_LEV_Full_76_80()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*(saList.get(j).getRX_LEV_Full_71_75()+saList.get(j).getRX_LEV_Full_76_80())/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平6级比例")) {
						ind.setIndex_name("下行接收电平6级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_81_85()+saList.get(j).getRX_LEV_Full_86_90()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*(saList.get(j).getRX_LEV_Full_81_85()+saList.get(j).getRX_LEV_Full_86_90())/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收电平7级比例")) {
						ind.setIndex_name("下行接收电平7级比例");
						ind.setIndex_num(saList.get(j).getRX_LEV_Full_91_95()+saList.get(j).getRX_LEV_Full_96_100()+saList.get(j).getRX_LEV_Full_101_105()+saList.get(j).getRX_LEV_Full_106_110()+"");
						ind.setIndex_deno(saList.get(j).sum_LEV()+"");
						if(saList.get(j).sum_LEV() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*(saList.get(j).getRX_LEV_Full_91_95()+saList.get(j).getRX_LEV_Full_96_100()+saList.get(j).getRX_LEV_Full_101_105()+saList.get(j).getRX_LEV_Full_106_110())/saList.get(j).sum_LEV());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					}
					inList.add(ind);
					
				}
				continue;
			}
			
			
			if(sa_Type[i].startsWith("下行接收质量")) {
				for(int j=0; j<saList.size(); j++) {
					Index ind=new Index();
					ind.setBsName((String)map_1.get(saList.get(j).getFrontProcessorId()));
					ind.setBsCI(String.valueOf(map_2.get(saList.get(j).getFrontProcessorId())));
					ind.setDate(saList.get(j).getDate());
					ind.setTimeslot(saList.get(j).getTimeSlot());
					if(sa_Type[i].equals("下行接收质量0级比例")) {
						ind.setIndex_name("下行接收质量0级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full0()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full0()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量1级比例")) {
						ind.setIndex_name("下行接收质量1级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full1()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full1()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量2级比例")) {
						ind.setIndex_name("下行接收质量2级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full2()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full2()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量3级比例")) {
						ind.setIndex_name("下行接收质量3级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full3()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full3()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量4级比例")) {
						ind.setIndex_name("下行接收质量4级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full4()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full4()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量5级比例")) {
						ind.setIndex_name("下行接收质量5级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full5()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full5()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量6级比例")) {
						ind.setIndex_name("下行接收质量6级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full6()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full6()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("下行接收质量7级比例")) {
						ind.setIndex_name("下行接收质量7级比例");
						ind.setIndex_num(saList.get(j).getRX_QUAL_Full7()+"");
						ind.setIndex_deno(saList.get(j).sum_QUAL()+"");
						if(saList.get(j).sum_QUAL() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getRX_QUAL_Full7()/saList.get(j).sum_QUAL());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					}
	
					inList.add(ind);					
				}
				continue;
			}
			
			//处理TA
			if(sa_Type[i].startsWith("接收TA值")) {
				for(int j=0; j<saList.size(); j++) {
					Index ind=new Index();
					ind.setBsName((String)map_1.get(saList.get(j).getFrontProcessorId()));
					ind.setBsCI(String.valueOf(map_2.get(saList.get(j).getFrontProcessorId())));
					ind.setDate(saList.get(j).getDate());
					ind.setTimeslot(saList.get(j).getTimeSlot());
					if(sa_Type[i].equals("接收TA值0级比例")) {
						ind.setIndex_name("接收TA值0级比例");
						ind.setIndex_num(saList.get(j).getTA0()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA0()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值1级比例")) {
						ind.setIndex_name("接收TA值1级比例");
						ind.setIndex_num(saList.get(j).getTA1()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA1()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值2级比例")) {
						ind.setIndex_name("接收TA值2级比例");
						ind.setIndex_num(saList.get(j).getTA2()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA2()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值3级比例")) {
						ind.setIndex_name("接收TA值3级比例");
						ind.setIndex_num(saList.get(j).getTA3()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA3()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值4级比例")) {
						ind.setIndex_name("接收TA值4级比例");
						ind.setIndex_num(saList.get(j).getTA4()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA4()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值5级比例")) {
						ind.setIndex_name("接收TA值5级比例");
						ind.setIndex_num(saList.get(j).getTA5()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA5()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值6级比例")) {
						ind.setIndex_name("接收TA值6级比例");
						ind.setIndex_num(saList.get(j).getTA6()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA6()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值7级比例")) {
						ind.setIndex_name("接收TA值7级比例");
						ind.setIndex_num(saList.get(j).getTA7()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA7()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值8级比例")) {
						ind.setIndex_name("接收TA值8级比例");
						ind.setIndex_num(saList.get(j).getTA8()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA8()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值9级比例")) {
						ind.setIndex_name("接收TA值9级比例");
						ind.setIndex_num(saList.get(j).getTA9()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA9()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值10级比例")) {
						ind.setIndex_name("接收TA值10级比例");
						ind.setIndex_num(saList.get(j).getTA10()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA10()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值11级比例")) {
						ind.setIndex_name("接收TA值11级比例");
						ind.setIndex_num(saList.get(j).getTA11()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA11()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值12级比例")) {
						ind.setIndex_name("接收TA值12级比例");
						ind.setIndex_num(saList.get(j).getTA12()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA12()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值13级比例")) {
						ind.setIndex_name("接收TA值13级比例");
						ind.setIndex_num(saList.get(j).getTA13()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA13()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值14级比例")) {
						ind.setIndex_name("接收TA值14级比例");
						ind.setIndex_num(saList.get(j).getTA14()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA14()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值15级比例")) {
						ind.setIndex_name("接收TA值15级比例");
						ind.setIndex_num(saList.get(j).getTA15()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA15()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值16级比例")) {
						ind.setIndex_name("接收TA值16级比例");
						ind.setIndex_num(saList.get(j).getTA16()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA16()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值17级比例")) {
						ind.setIndex_name("接收TA值17级比例");
						ind.setIndex_num(saList.get(j).getTA17()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA17()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值18级比例")) {
						ind.setIndex_name("接收TA值18级比例");
						ind.setIndex_num(saList.get(j).getTA18()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA18()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值19级比例")) {
						ind.setIndex_name("接收TA值19级比例");
						ind.setIndex_num(saList.get(j).getTA19()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA19()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值20级比例")) {
						ind.setIndex_name("接收TA值20级比例");
						ind.setIndex_num(saList.get(j).getTA20()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA20()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值21级比例")) {
						ind.setIndex_name("接收TA值21级比例");
						ind.setIndex_num(saList.get(j).getTA21()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA21()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值22级比例")) {
						ind.setIndex_name("接收TA值22级比例");
						ind.setIndex_num(saList.get(j).getTA22()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA22()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值23级比例")) {
						ind.setIndex_name("接收TA值23级比例");
						ind.setIndex_num(saList.get(j).getTA23()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA23()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值24级比例")) {
						ind.setIndex_name("接收TA值24级比例");
						ind.setIndex_num(saList.get(j).getTA24()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA24()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值25级比例")) {
						ind.setIndex_name("接收TA值25级比例");
						ind.setIndex_num(saList.get(j).getTA25()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA25()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值26级比例")) {
						ind.setIndex_name("接收TA值26级比例");
						ind.setIndex_num(saList.get(j).getTA26()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA26()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值27级比例")) {
						ind.setIndex_name("接收TA值27级比例");
						ind.setIndex_num(saList.get(j).getTA27()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA27()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值28级比例")) {
						ind.setIndex_name("接收TA值28级比例");
						ind.setIndex_num(saList.get(j).getTA28()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA28()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值29级比例")) {
						ind.setIndex_name("接收TA值29级比例");
						ind.setIndex_num(saList.get(j).getTA29()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA29()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值30级比例")) {
						ind.setIndex_name("接收TA值30级比例");
						ind.setIndex_num(saList.get(j).getTA30()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).getTA30()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					} else if(sa_Type[i].equals("接收TA值30级以上比例")) {
						ind.setIndex_name("接收TA值30级以上比例");
						ind.setIndex_num(saList.get(j).sum_TA_30()+"");
						ind.setIndex_deno(saList.get(j).sum_TA()+"");
						if(saList.get(j).sum_TA() != 0) {
							//DecimalFormat df = new DecimalFormat("00.00");
							String num_result = df.format((float)100*saList.get(j).sum_TA_30()/saList.get(j).sum_TA());
							ind.setIndex_value(num_result+"%");				
						} else {
							ind.setIndex_value("无");
						}
					}
					inList.add(ind);					
				}
				continue;
			}
			
			
		}
		
		//处理信令信息
		for(int i=0; i<si_Type.length; i++) {
			if(si_Type[i].equals("信令信道分配成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("信令信道分配成功率");
					index_1.setIndex_num(siList.get(j).getSdcch_Immediate_Assignment()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Channel_Request()+"");
					if(siList.get(j).getSdcch_Channel_Request() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Immediate_Assignment()/siList.get(j).getSdcch_Channel_Request());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("业务信道分配成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("业务信道分配成功率");
					index_1.setIndex_num(siList.get(j).getFacch_Assignment_Complete()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Assignment_Command()+"");
					if(siList.get(j).getSdcch_Assignment_Command() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getFacch_Assignment_Complete()/siList.get(j).getSdcch_Assignment_Command());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("越区切换成功率（8W）")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("越区切换成功率（8W）");
					index_1.setIndex_num(siList.get(j).getFacch_Handover_Complete()+"");
					index_1.setIndex_deno(siList.get(j).getFacch_Handover_Command()+"");
					//System.out.println(siList.get(j).getFacch_Handover_Command());
					if(siList.get(j).getFacch_Handover_Command() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getFacch_Handover_Complete()/siList.get(j).getFacch_Handover_Command());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("呼叫接通率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("呼叫接通率");
					index_1.setIndex_num(siList.get(j).getFacch_Connect()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Setup()+"");
					if(siList.get(j).getSdcch_Setup() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getFacch_Connect()/siList.get(j).getSdcch_Setup());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("层2消息建立成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("层2消息建立成功率");
					index_1.setIndex_num(siList.get(j).getFacch_U_UA()+siList.get(j).getSdcch_U_UA()+"");
					index_1.setIndex_deno(siList.get(j).getFacch_U_SABM()+siList.get(j).getSdcch_U_SABM()+"");
					if((siList.get(j).getFacch_U_SABM()+siList.get(j).getSdcch_U_SABM()) != 0) {
						String num_result_1 = df.format((float)100*(siList.get(j).getFacch_U_UA()+siList.get(j).getSdcch_U_UA())/(siList.get(j).getFacch_U_SABM()+siList.get(j).getSdcch_U_SABM()));
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("信令信道分配失败率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("信令信道分配失败率");
					index_1.setIndex_num(siList.get(j).getSdcch_Immediate_Assignment_Reject()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Channel_Request()+"");
					if(siList.get(j).getSdcch_Channel_Request() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Immediate_Assignment_Reject()/siList.get(j).getSdcch_Channel_Request());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("位置更新成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("位置更新成功率");
					index_1.setIndex_num(siList.get(j).getSdcch_Location_Updating_Accept()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Location_Updating_Request()+"");
					if(siList.get(j).getSdcch_Location_Updating_Request() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Location_Updating_Accept()/siList.get(j).getSdcch_Location_Updating_Request());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("CM层业务建立成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("CM层业务建立成功率");
					index_1.setIndex_num(siList.get(j).getSdcch_CM_Service_Accept()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_CM_service_Request()+"");
					if(siList.get(j).getSdcch_CM_service_Request() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_CM_Service_Accept()/siList.get(j).getSdcch_CM_service_Request());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("鉴权成功率")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("鉴权成功率");
					index_1.setIndex_num(siList.get(j).getSdcch_Authentication_Response()+"");
					index_1.setIndex_deno(siList.get(j).getSdcch_Authentication_Request()+"");
					if(siList.get(j).getSdcch_Authentication_Request() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Authentication_Response()/siList.get(j).getSdcch_Authentication_Request());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("层2拆线次数")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("层2拆线次数");
					index_1.setIndex_num(siList.get(j).getFacch_U_DISC()+siList.get(j).getSdcch_U_DISC()+"");
					index_1.setIndex_deno("无");
//					if(siList.get(j).getSdcch_Channel_Request() != 0) {
//						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Channel_Release()/siList.get(j).getSdcch_Channel_Request());
//						index_1.setIndex_value(num_result_1+"%");	
//					} else {
//						index_1.setIndex_value(siList.get(j).getFacch_U_DISC()+siList.get(j).getSdcch_U_DISC()+"");
//					}
					
					index_1.setIndex_value(siList.get(j).getFacch_U_DISC()+siList.get(j).getSdcch_U_DISC()+"");
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("层3拆线次数")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("层3拆线次数");
					index_1.setIndex_num(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()+"");
					index_1.setIndex_deno("无");
//					if(siList.get(j).getSdcch_Channel_Request() != 0) {
//						String num_result_1 = df.format((float)100*siList.get(j).getSdcch_Channel_Release()/siList.get(j).getSdcch_Channel_Request());
//						index_1.setIndex_value(num_result_1+"%");	
//					} else {
//						index_1.setIndex_value("无");
//					}
					index_1.setIndex_value(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()+"");
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("越区切换空口成功率（8W）")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("越区切换空口成功率（8W）");
					index_1.setIndex_num(siList.get(j).getFacch_Physical_Information()+"");
					index_1.setIndex_deno(siList.get(j).getFacch_Handover_Access()+"");
					if(siList.get(j).getFacch_Handover_Access() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getFacch_Physical_Information()/siList.get(j).getFacch_Handover_Access());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			if(si_Type[i].equals("越区切换切入成功率（8W）")) {
				for(int j=0; j<siList.size(); j++) {
					Index index_1 = new Index();
					index_1.setBsName((String)map_1.get(siList.get(j).getFrontProcessorId()));
					index_1.setBsCI(String.valueOf(map_2.get(siList.get(j).getFrontProcessorId())));
					index_1.setDate(siList.get(j).getDate());
					index_1.setTimeslot(siList.get(j).getTimeSlot());					
					index_1.setIndex_name("越区切换切入成功率（8W）");
					index_1.setIndex_num(siList.get(j).getFacch_Handover_Complete()+"");
					index_1.setIndex_deno(siList.get(j).getFacch_Handover_Access()+"");
					if(siList.get(j).getFacch_Handover_Access() != 0) {
						String num_result_1 = df.format((float)100*siList.get(j).getFacch_Handover_Complete()/siList.get(j).getFacch_Handover_Access());
						index_1.setIndex_value(num_result_1+"%");	
					} else {
						index_1.setIndex_value("无");
					}
					
					inList.add(index_1);
				}
				continue;
				
			}
			
			
			
		}
		
		
		//处理业务统计信息
		for(int i=0; i<se_Type.length; i++) {
			if(se_Type[i].equals("HDLC建立成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("HDLC建立成功率");
					index_2.setIndex_num(seList.get(j).getHdlc_UA()+"");
					index_2.setIndex_deno(seList.get(j).getHdlc_SABME()+"");
					if(seList.get(j).getHdlc_SABME() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getHdlc_UA()/seList.get(j).getHdlc_SABME());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("安全层建立成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("安全层建立成功率");
					index_2.setIndex_num(seList.get(j).getSLayer_AU1()+"");
					index_2.setIndex_deno(seList.get(j).getSLayer_AU3()+"");
					if(seList.get(j).getSLayer_AU3() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getSLayer_AU1()/seList.get(j).getSLayer_AU3());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("传输层建立成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("传输层建立成功率");
					index_2.setIndex_num(seList.get(j).getTLayer_CC()+"");
					index_2.setIndex_deno(seList.get(j).getTLayer_CR()+"");
					if(seList.get(j).getTLayer_CR() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getTLayer_CC()/seList.get(j).getTLayer_CR());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("传输层释放成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("传输层释放成功率");
					index_2.setIndex_num(seList.get(j).getTLayer_DC()+"");
					index_2.setIndex_deno(seList.get(j).getTLayer_DR()+"");
					if(seList.get(j).getTLayer_DR() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getTLayer_DC()/seList.get(j).getTLayer_DR());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("HDLC重传次数")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("HDLC重传次数");
					index_2.setIndex_num(seList.get(j).getHdlc_SREJ()+seList.get(j).getHdlc_REJ()+"");
					index_2.setIndex_deno("无");
//					if(seList.get(j).getHdlc_SABME() != 0) {
//						String num_result_2 = df.format((float)100*seList.get(j).getHdlc_UA()/seList.get(j).getHdlc_SABME());
//						index_2.setIndex_value(num_result_2+"%");	
//					} else {
//						index_2.setIndex_value("无");
//					}
					index_2.setIndex_value(seList.get(j).getHdlc_SREJ()+seList.get(j).getHdlc_REJ()+"");
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("HDLC错帧次数")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("HDLC错帧次数");
					index_2.setIndex_num(seList.get(j).getHdlc_FRMR()+"");
					index_2.setIndex_deno("无");
//					if(seList.get(j).getHdlc_SABME() != 0) {
//						String num_result_2 = df.format((float)100*seList.get(j).getHdlc_UA()/seList.get(j).getHdlc_SABME());
//						index_2.setIndex_value(num_result_2+"%");	
//					} else {
//						index_2.setIndex_value("无");
//					}
					index_2.setIndex_value(seList.get(j).getHdlc_FRMR()+"");
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("C3业务建立成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("C3业务建立成功率");
					index_2.setIndex_num(seList.get(j).getALayer_Message159()+"");
					index_2.setIndex_deno(seList.get(j).getALayer_Message155()+"");
					if(seList.get(j).getALayer_Message155() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getALayer_Message159()/seList.get(j).getALayer_Message155());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("C3业务紧急停车次数")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("C3业务紧急停车次数");
					index_2.setIndex_num(seList.get(j).getALayer_Message15()+seList.get(j).getALayer_Message16()+"");
					index_2.setIndex_deno("无");
//					if(seList.get(j).getHdlc_SABME() != 0) {
//						String num_result_2 = df.format((float)100*seList.get(j).getHdlc_UA()/seList.get(j).getHdlc_SABME());
//						index_2.setIndex_value(num_result_2+"%");	
//					} else {
//						index_2.setIndex_value("无");
//					}
					index_2.setIndex_value(seList.get(j).getALayer_Message15()+seList.get(j).getALayer_Message16()+"");
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("C3业务紧急停车成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("C3业务紧急停车成功率");
					index_2.setIndex_num(seList.get(j).getALayer_Message147()+"");
					index_2.setIndex_deno(seList.get(j).getALayer_Message15()+seList.get(j).getALayer_Message16()+"");
					if((seList.get(j).getALayer_Message15()+seList.get(j).getALayer_Message16()) != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getALayer_Message147()/(seList.get(j).getALayer_Message15()+seList.get(j).getALayer_Message16()));
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("C3业务正常中止成功率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("C3业务正常中止成功率");
					index_2.setIndex_num(seList.get(j).getALayer_Message39()+"");
					index_2.setIndex_deno(seList.get(j).getALayer_Message156()+"");
					if(seList.get(j).getALayer_Message156() != 0) {
						String num_result_2 = df.format((float)100*seList.get(j).getALayer_Message39()/seList.get(j).getALayer_Message156());
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			if(se_Type[i].equals("C3业务异常中断率")) {
				for(int j=0; j<seList.size(); j++) {
					Index index_2 = new Index();
					index_2.setBsName((String)map_1.get(seList.get(j).getFrontProcessorId()));
					index_2.setBsCI(String.valueOf(map_2.get(seList.get(j).getFrontProcessorId())));
					index_2.setDate(seList.get(j).getDate());
					index_2.setTimeslot(seList.get(j).getTimeSlot());					
					index_2.setIndex_name("C3业务异常中断率");
					index_2.setIndex_num(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()-seList.get(j).getALayer_Message156()+"");
					index_2.setIndex_deno(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()+"");
					if(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect() != 0) {
						String num_result_2 = df.format((float)100*(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()-seList.get(j).getALayer_Message156())/(siList.get(j).getFacch_Disconnect()+siList.get(j).getSdcch_Disconnect()));
						index_2.setIndex_value(num_result_2+"%");	
					} else {
						index_2.setIndex_value("无");
					}
					
					inList.add(index_2);
				}
				continue;
				
			}
			
			
			
		}
		
		//处理GPRS信令信息
				for(int i=0; i<gd_Type.length; i++) {
					if(gd_Type[i].equals("GPRS附着成功率")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("GPRS附着成功率");
							index_3.setIndex_num(gdList.get(j).getAttach_complete()+"");
							index_3.setIndex_deno(gdList.get(j).getAttach_request()+"");
							if(gdList.get(j).getAttach_request() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getAttach_complete()/gdList.get(j).getAttach_request());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}
							
							inList.add(index_3);
						}
						continue;
						
					}
					
					if(gd_Type[i].equals("GPRS去附着成功率")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("GPRS去附着成功率");
							index_3.setIndex_num(gdList.get(j).getDetach_accept()+"");
							index_3.setIndex_deno(gdList.get(j).getDetach_request()+"");
							if(gdList.get(j).getDetach_request() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getDetach_accept()/gdList.get(j).getDetach_request());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}
							
							inList.add(index_3);
						}
						continue;
						
					}
					
					if(gd_Type[i].equals("GPRS附着拒绝")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("GPRS附着拒绝");
							index_3.setIndex_num(gdList.get(j).getAttach_reject()+"");
							index_3.setIndex_deno("无");
							//System.out.println(gdList.get(j).getFacch_Handover_Command());
							/*if(gdList.get(j).getFacch_Handover_Command() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Handover_Complete()/gdList.get(j).getFacch_Handover_Command());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}*/
							index_3.setIndex_value(gdList.get(j).getAttach_reject()+"");
							inList.add(index_3);
						}
						continue;
						
					}
										
					if(gd_Type[i].equals("GPRS附着失败")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("呼叫接通率");
							index_3.setIndex_num(gdList.get(j).getAttach_request()-gdList.get(j).getAttach_complete()+"");
							index_3.setIndex_deno("无");
							/*if(gdList.get(j).getSdcch_Setup() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Connect()/gdList.get(j).getSdcch_Setup());
								index_1.setIndex_value(num_result_1+"%");	
							} else {
								
							}*/
							index_3.setIndex_value(gdList.get(j).getAttach_request()-gdList.get(j).getAttach_complete()+"");
							inList.add(index_3);
						}
						continue;						
					}
					
					if(gd_Type[i].equals("路由区更新成功率")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("路由区更新成功率");
							index_3.setIndex_num(gdList.get(j).getRouting_area_update_complete()+"");
							index_3.setIndex_deno(gdList.get(j).getRouting_area_update_request()+"");
							if(gdList.get(j).getRouting_area_update_request() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getRouting_area_update_complete()/gdList.get(j).getRouting_area_update_request());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}
							
							inList.add(index_3);
						}
						continue;
						
					}
					
					if(gd_Type[i].equals("路由更新拒绝")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("路由更新拒绝");
							index_3.setIndex_num(gdList.get(j).getRouting_area_update_reject()+"");
							index_3.setIndex_deno("无");
							//System.out.println(gdList.get(j).getFacch_Handover_Command());
							/*if(gdList.get(j).getFacch_Handover_Command() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Handover_Complete()/gdList.get(j).getFacch_Handover_Command());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}*/
							index_3.setIndex_value(gdList.get(j).getRouting_area_update_reject()+"");
							inList.add(index_3);
						}
						continue;						
					}
					
					if(gd_Type[i].equals("路由区更新失败")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("路由区更新失败");
							index_3.setIndex_num(gdList.get(j).getRouting_area_update_request()-gdList.get(j).getRouting_area_update_complete()+"");
							index_3.setIndex_deno("无");
							/*if(gdList.get(j).getSdcch_Setup() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Connect()/gdList.get(j).getSdcch_Setup());
								index_1.setIndex_value(num_result_1+"%");	
							} else {
								
							}*/
							index_3.setIndex_value(gdList.get(j).getRouting_area_update_request()-gdList.get(j).getRouting_area_update_complete()+"");
							inList.add(index_3);
						}
						continue;						
					}
					
					if(gd_Type[i].equals("PDP激活成功率")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("PDP激活成功率");
							index_3.setIndex_num(gdList.get(j).getActivate_PDP_context_accept()+"");
							index_3.setIndex_deno(gdList.get(j).getActivate_PDP_context_request()+"");
							if(gdList.get(j).getActivate_PDP_context_request() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getActivate_PDP_context_accept()/gdList.get(j).getActivate_PDP_context_request());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}
							
							inList.add(index_3);
						}
						continue;
						
					}
					
					if(gd_Type[i].equals("PDP激活拒绝")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("PDP激活拒绝");
							index_3.setIndex_num(gdList.get(j).getActivate_PDP_context_reject()+"");
							index_3.setIndex_deno("无");
							//System.out.println(gdList.get(j).getFacch_Handover_Command());
							/*if(gdList.get(j).getFacch_Handover_Command() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Handover_Complete()/gdList.get(j).getFacch_Handover_Command());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}*/
							index_3.setIndex_value(gdList.get(j).getActivate_PDP_context_reject()+"");
							inList.add(index_3);
						}
						continue;						
					}
					
					if(gd_Type[i].equals("PDP激活失败")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("PDP激活失败");
							index_3.setIndex_num(gdList.get(j).getActivate_PDP_context_request()-gdList.get(j).getActivate_PDP_context_accept()+"");
							index_3.setIndex_deno("无");
							/*if(gdList.get(j).getSdcch_Setup() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getFacch_Connect()/gdList.get(j).getSdcch_Setup());
								index_1.setIndex_value(num_result_1+"%");	
							} else {
								
							}*/
							index_3.setIndex_value(gdList.get(j).getActivate_PDP_context_request()-gdList.get(j).getActivate_PDP_context_accept()+"");
							inList.add(index_3);
						}
						continue;						
					}
					
					if(gd_Type[i].equals("PDP去激活成功率")) {
						for(int j=0; j<gdList.size(); j++) {
							Index index_3 = new Index();
							index_3.setBsName((String)map_1.get(gdList.get(j).getFrontProcessorId()));
							index_3.setBsCI(String.valueOf(map_2.get(gdList.get(j).getFrontProcessorId())));
							index_3.setDate(gdList.get(j).getDate());
							index_3.setTimeslot(gdList.get(j).getTimeSlot());					
							index_3.setIndex_name("PDP去激活成功率");
							index_3.setIndex_num(gdList.get(j).getDeactivate_PDP_context_accept()+"");
							index_3.setIndex_deno(gdList.get(j).getDeactivate_PDP_context_request()+"");
							if(gdList.get(j).getDeactivate_PDP_context_request() != 0) {
								String num_result_1 = df.format((float)100*gdList.get(j).getDeactivate_PDP_context_accept()/gdList.get(j).getDeactivate_PDP_context_request());
								index_3.setIndex_value(num_result_1+"%");	
							} else {
								index_3.setIndex_value("无");
							}
							
							inList.add(index_3);
						}
						continue;
						
					}
					
			}
				
				//处理GPRS业务信息
				for(int i=0; i<gf_Type.length; i++) {
					if(gf_Type[i].equals("GRIS IP地址查询成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("GRIS IP地址查询成功率");
							index_4.setIndex_num(gfList.get(j).getGRIS_IP_Query_Response()+"");
							index_4.setIndex_deno(gfList.get(j).getGRIS_IP_Query_Qequest()+"");
							if(gfList.get(j).getGRIS_IP_Query_Qequest() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_IP_Query_Response()/gfList.get(j).getGRIS_IP_Query_Qequest());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							
							inList.add(index_4);
						}
						continue;
						
					}
			
					if(gf_Type[i].equals("M-GRIS IP地址查询成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("M-GRIS IP地址查询成功率");
							index_4.setIndex_num(gfList.get(j).getMGRIS_IP_Query_Response()+"");
							index_4.setIndex_deno(gfList.get(j).getMGRIS_IP_Query_Request()+"");
							if(gfList.get(j).getMGRIS_IP_Query_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getMGRIS_IP_Query_Response()/gfList.get(j).getMGRIS_IP_Query_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							
							inList.add(index_4);
						}
						continue;
						
					}
			
					if(gf_Type[i].equals("GRIS IP地址更新成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("GRIS IP地址查询成功率");
							index_4.setIndex_num(gfList.get(j).getGRIS_IP_Update_Response()+"");
							index_4.setIndex_deno(gfList.get(j).getGRIS_IP_Update_Request()+"");
							if(gfList.get(j).getGRIS_IP_Update_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_IP_Update_Response()/gfList.get(j).getGRIS_IP_Update_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("M-GRIS IP地址更新成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("M-GRIS IP地址查询成功率");
							index_4.setIndex_num(gfList.get(j).getMGRIS_IP_Update_Response()+"");
							index_4.setIndex_deno(gfList.get(j).getMGRIS_IP_Update_Request()+"");
							if(gfList.get(j).getMGRIS_IP_Update_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getMGRIS_IP_Update_Response()/gfList.get(j).getMGRIS_IP_Update_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("终端活动性检测成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("终端活动性检测成功率");
							index_4.setIndex_num(gfList.get(j).getGRIS_Detect_Response()+"");
							index_4.setIndex_deno(gfList.get(j).getGRIS_Detect_Request()+"");
							if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							
							inList.add(index_4);
						}
						continue;
						
					}
					
					
					if(gf_Type[i].equals("车次号信息发送次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("车次号信息发送次数");
							index_4.setIndex_num(gfList.get(j).getTrainNo_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTrainNo_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}

					if(gf_Type[i].equals("列车停稳次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("列车停稳次数");
							index_4.setIndex_num(gfList.get(j).getTrain_Stop()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTrain_Stop()+"");
							inList.add(index_4);
						}
						continue;
						
					}
			
					if(gf_Type[i].equals("列车启动次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("列车启动次数");
							index_4.setIndex_num(gfList.get(j).getTrain_Start()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTrain_Start()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("总调度命令发送总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("总调度命令发送总次数");
							index_4.setIndex_num(gfList.get(j).getTotal_Dispatch_Send_All()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTotal_Dispatch_Send_All()+"");
							inList.add(index_4);
						}
						continue;						
					}
					
					if(gf_Type[i].equals("总调度命令发送条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("总调度命令发送条数");
							index_4.setIndex_num(gfList.get(j).getTotal_Dispatch_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTotal_Dispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					if(gf_Type[i].equals("总调度命令重发次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("总调度命令重发次数");
							index_4.setIndex_num(gfList.get(j).getTotal_Dispatch_Resend()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTotal_Dispatch_Resend()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("总调度命令发送成功条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("总调度命令发送成功条数");
							index_4.setIndex_num(gfList.get(j).getTotal_Dispatch_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTotal_Dispatch_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("总调度命令发送失败条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("总调度命令发送失败条数");
							index_4.setIndex_num(gfList.get(j).getTotal_Dispatch_Send()-gfList.get(j).getTotal_Dispatch_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTotal_Dispatch_Send()-gfList.get(j).getTotal_Dispatch_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令发送条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令发送条数");
							index_4.setIndex_num(gfList.get(j).getDispatch_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getDispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令重发次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令重发次数");
							index_4.setIndex_num(gfList.get(j).getDispatch_Resend()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getDispatch_Resend()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令自动确认条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令自动确认条数");
							index_4.setIndex_num(gfList.get(j).getAuto_Dispatch_Confirm()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getAuto_Dispatch_Confirm()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令手动签收条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令手动签收条数");
							index_4.setIndex_num(gfList.get(j).getManu_Dispatch_Confirm()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getManu_Dispatch_Confirm()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令发送成功条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令发送成功条数");
							index_4.setIndex_num(gfList.get(j).getDispatch_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getDispatch_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令发送失败条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令发送失败条数");
							index_4.setIndex_num(gfList.get(j).getDispatch_Resend()-gfList.get(j).getDispatch_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getDispatch_Resend()-gfList.get(j).getDispatch_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令发送成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令发送成功率");
							index_4.setIndex_num(gfList.get(j).getDispatch_Send_Success()+"");
							index_4.setIndex_deno(gfList.get(j).getDispatch_Resend()+"");
							if(gfList.get(j).getDispatch_Resend() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getDispatch_Send_Success()/gfList.get(j).getDispatch_Resend());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							//index_4.setIndex_value(gfList.get(j).getDispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调度命令重发率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调度命令重发率");
							index_4.setIndex_num(gfList.get(j).getDispatch_Resend()+"");
							index_4.setIndex_deno(gfList.get(j).getDispatch_Send_All()+"");
							if(gfList.get(j).getDispatch_Send_All() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getDispatch_Resend()/gfList.get(j).getDispatch_Send_All());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							//index_4.setIndex_value(gfList.get(j).getDispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告发送条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告发送条数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告重发次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告重发次数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Resend()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_Resend()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告自动确认条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告自动确认条数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_AutoComfirm()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_AutoComfirm()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告手动签收条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告手动签收条数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_ManuComfirm()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_ManuComfirm()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					if(gf_Type[i].equals("进路预告发送成功条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告发送成功条数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告发送失败条数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告发送失败条数");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Send()-gfList.get(j).getRoute_Prediction_Send_Success()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRoute_Prediction_Send()-gfList.get(j).getRoute_Prediction_Send_Success()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告发送成功率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告发送成功率");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Send_Success()+"");
							index_4.setIndex_deno(gfList.get(j).getRoute_Prediction_Send()+"");
							if(gfList.get(j).getRoute_Prediction_Send() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getRoute_Prediction_Send_Success()/gfList.get(j).getRoute_Prediction_Send());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							//index_4.setIndex_value(gfList.get(j).getDispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("进路预告重发率")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("进路预告重发率");
							index_4.setIndex_num(gfList.get(j).getRoute_Prediction_Resend()+"");
							index_4.setIndex_deno(gfList.get(j).getRoute_Prediction_Send_All()+"");
							if(gfList.get(j).getRoute_Prediction_Send_All() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getRoute_Prediction_Resend()/gfList.get(j).getRoute_Prediction_Send_All());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}
							//index_4.setIndex_value(gfList.get(j).getDispatch_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("红色许可证发送总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("红色许可证发送总次数");
							index_4.setIndex_num(gfList.get(j).getRed_License_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getRed_License_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("绿色许可证发送总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("绿色许可证发送总次数");
							index_4.setIndex_num(gfList.get(j).getGreen_License_Send()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getGreen_License_Send()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调车作业通知单发送总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调车作业通知单发送总次数");
							index_4.setIndex_num(gfList.get(j).getTrain_Work_Command()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTrain_Work_Command()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("调车请求确认发送总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("调车请求确认发送总次数");
							index_4.setIndex_num(gfList.get(j).getTrain_Work_Confirmed()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getTrain_Work_Confirmed()+"");
							inList.add(index_4);
						}
						continue;
						
					}
					
					if(gf_Type[i].equals("出入库检测总次数")) {
						for(int j=0; j<gfList.size(); j++) {
							Index index_4 = new Index();
							index_4.setBsName((String)map_1.get(gfList.get(j).getFrontProcessorId()));
							index_4.setBsCI(String.valueOf(map_2.get(gfList.get(j).getFrontProcessorId())));
							index_4.setDate(gfList.get(j).getDate());
							index_4.setTimeslot(gfList.get(j).getTimeSlot());					
							index_4.setIndex_name("出入库检测总次数");
							index_4.setIndex_num(gfList.get(j).getInspection_Detect()+"");
							index_4.setIndex_deno("无");
							/*if(gfList.get(j).getGRIS_Detect_Request() != 0) {
								String num_result_1 = df.format((float)100*gfList.get(j).getGRIS_Detect_Response()/gfList.get(j).getGRIS_Detect_Request());
								index_4.setIndex_value(num_result_1+"%");	
							} else {
								index_4.setIndex_value("无");
							}*/
							index_4.setIndex_value(gfList.get(j).getInspection_Detect()+"");
							inList.add(index_4);
						}
						continue;
						
					}
									
				}
		return inList;		
	}
	
	public static String getHourTimeslot(long timestamp) {
		SimpleDateFormat dateformat = new SimpleDateFormat("HH:mm");
		String str1 = dateformat.format(timestamp);
		String str2 = dateformat.format(timestamp+3600000);
		String str = str1+"-"+str2;
		return str;
	}


	

	public static List<SacchCount> comboSacchListToHour(int front_num, List<SacchCount> sacchList_15min, int key, String TimeGap) {
		List<SacchCount> sacchList_hour = new ArrayList<>();
		
		if(sacchList_15min.size()==0) {
			return sacchList_15min;
		}
		
		int count_start = 0;

		if(TimeGap.equals("1小时")) {
			for(int i=0; i<4*front_num; i++) {

				if (new Date(sacchList_15min.get(i).getTimeStamp() + 10).getMinutes() == 0) {
					count_start = i;

					break;
				}
			}//找到第一条整小时的记录
		}
		
		if(TimeGap.equals("1天")) {
			for(int i=0; i<96*front_num; i++) {
				if(sacchList_15min.get(i).getTimeSlot().startsWith("00:00")) {
					count_start = i;
					break;
				}
			}//找到第一条整小时的记录
		}
		int count_start_con = count_start;
		for(int j=0; j<(sacchList_15min.size()-count_start_con)/front_num/key; j++) {

			for(int k=count_start; k<count_start+front_num; k++) {
				SacchCount sacch_obj = new SacchCount();
				
				sacch_obj.setFrontProcessorId(sacchList_15min.get(k).getFrontProcessorId());
				sacch_obj.setDate(sacchList_15min.get(k).getDate());
				sacch_obj.setTimeStamp(sacchList_15min.get(k).getTimeStamp());
				if(TimeGap.equals("1小时")) {
					sacch_obj.setTimeSlot(getHourTimeslot(sacchList_15min.get(k).getTimeStamp()));
				}
				if(TimeGap.equals("1天")) {
					sacch_obj.setTimeSlot("00:00-24:00");
				}
				int alldata0 = 0;
				int alldata1 = 0;
				int alldata2 = 0;
				int alldata3 = 0;
				int alldata4 = 0;
				int alldata5 = 0;
				int alldata6 = 0;
				int alldata7 = 0;
				int alldata8 = 0;
				int alldata9 = 0;
				int alldata10 = 0;
				int alldata11 = 0;
				int alldata12 = 0;
				int alldata13 = 0;
				int alldata14 = 0;
				int alldata15 = 0;
				int alldata16 = 0;
				int alldata17 = 0;
				int alldata18 = 0;
				int alldata19 = 0;
				int alldata20 = 0;
				int alldata21 = 0;
				int alldata22 = 0;
				int alldata23 = 0;
				int alldata24 = 0;
				int alldata25 = 0;
				int alldata26 = 0;
				int alldata27 = 0;
				int alldata28 = 0;
				int alldata29 = 0;
				int alldata30 = 0;
				int alldata31 = 0;
				int alldata32 = 0;
				int alldata33 = 0;
				int alldata34 = 0;
				int alldata35 = 0;
				int alldata36 = 0;
				int alldata37 = 0;
				int alldata38 = 0;
				int alldata39 = 0;
				int alldata40 = 0;
				int alldata41 = 0;
				int alldata42 = 0;
				int alldata43 = 0;
				int alldata44 = 0;
				int alldata45 = 0;
				int alldata46 = 0;
				int alldata47 = 0;
				int alldata48 = 0;
				int alldata49 = 0;
				int alldata50 = 0;
				int alldata51 = 0;
				int alldata52 = 0;
				int alldata53 = 0;
				int alldata54 = 0;
				int alldata55 = 0;
				int alldata56 = 0;
				int alldata57 = 0;
				int alldata58 = 0;
				int alldata59 = 0;
				int alldata60 = 0;
				int alldata61 = 0;
				int alldata62 = 0;
				int alldata63 = 0;
				int alldata64 = 0;
				int alldata65 = 0;
				int alldata66 = 0;
				int alldata67 = 0;
				int alldata68 = 0;
				int alldata69 = 0;
				int alldata70 = 0;
				int alldata71 = 0;
				int alldata72 = 0;
				int alldata73 = 0;
				int alldata74 = 0;
				int alldata75 = 0;
				int alldata76 = 0;
				int alldata77 = 0;
				int alldata78 = 0;
				int alldata79 = 0;
				int alldata80 = 0;
				int alldata81 = 0;
				int alldata82 = 0;
				int alldata83 = 0;
				int alldata84 = 0;

				for(int n=0; n<key; n++) {
					alldata0 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_47_50()+alldata0;
					alldata1 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_51_55()+alldata1;	
					alldata2 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_56_60()+alldata2;
					alldata3 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_61_65()+alldata3;
					alldata4 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_66_70()+alldata4;
					alldata5 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_71_75()+alldata5;
					alldata6 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_76_80()+alldata6;
					alldata7 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_81_85()+alldata7;
					alldata8 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_86_90()+alldata8;
					alldata9 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_91_95()+alldata9;
					alldata10 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_96_100()+alldata10;
					alldata11 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_101_105()+alldata11;
					alldata12 = sacchList_15min.get(k+n*front_num).getRX_LEV_Full_106_110()+alldata12;
					alldata13 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full0()+alldata13;
					alldata14 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full1()+alldata14;
					alldata15 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full2()+alldata15;
					alldata16 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full3()+alldata16;
					alldata17 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full4()+alldata17;
					alldata18 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full5()+alldata18;
					alldata19 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full6()+alldata19;
					alldata20 = sacchList_15min.get(k+n*front_num).getRX_QUAL_Full7()+alldata20;
					alldata21 = sacchList_15min.get(k+n*front_num).getTA0()+alldata21;
					alldata22 = sacchList_15min.get(k+n*front_num).getTA1()+alldata22;
					alldata23 = sacchList_15min.get(k+n*front_num).getTA2()+alldata23;
					alldata24 = sacchList_15min.get(k+n*front_num).getTA3()+alldata24;
					alldata25 = sacchList_15min.get(k+n*front_num).getTA4()+alldata25;
					alldata26 = sacchList_15min.get(k+n*front_num).getTA5()+alldata26;
					alldata27 = sacchList_15min.get(k+n*front_num).getTA6()+alldata27;
					alldata28 = sacchList_15min.get(k+n*front_num).getTA7()+alldata28;
					alldata29 = sacchList_15min.get(k+n*front_num).getTA8()+alldata29;
					alldata30 = sacchList_15min.get(k+n*front_num).getTA9()+alldata30;
					alldata31 = sacchList_15min.get(k+n*front_num).getTA10()+alldata31;
					alldata32 = sacchList_15min.get(k+n*front_num).getTA11()+alldata32;
					alldata33 = sacchList_15min.get(k+n*front_num).getTA12()+alldata33;
					alldata34 = sacchList_15min.get(k+n*front_num).getTA13()+alldata34;
					alldata35 = sacchList_15min.get(k+n*front_num).getTA14()+alldata35;
					alldata36 = sacchList_15min.get(k+n*front_num).getTA15()+alldata36;
					alldata37 = sacchList_15min.get(k+n*front_num).getTA16()+alldata37;
					alldata38 = sacchList_15min.get(k+n*front_num).getTA17()+alldata38;
					alldata39 = sacchList_15min.get(k+n*front_num).getTA18()+alldata39;
					alldata40 = sacchList_15min.get(k+n*front_num).getTA19()+alldata40;
					alldata41 = sacchList_15min.get(k+n*front_num).getTA20()+alldata41;
					alldata42 = sacchList_15min.get(k+n*front_num).getTA21()+alldata42;
					alldata43 = sacchList_15min.get(k+n*front_num).getTA22()+alldata43;
					alldata44 = sacchList_15min.get(k+n*front_num).getTA23()+alldata44;
					alldata45 = sacchList_15min.get(k+n*front_num).getTA24()+alldata45;
					alldata46 = sacchList_15min.get(k+n*front_num).getTA25()+alldata46;
					alldata47 = sacchList_15min.get(k+n*front_num).getTA26()+alldata47;
					alldata48 = sacchList_15min.get(k+n*front_num).getTA27()+alldata48;
					alldata49 = sacchList_15min.get(k+n*front_num).getTA28()+alldata49;
					alldata50 = sacchList_15min.get(k+n*front_num).getTA29()+alldata50;
					alldata51 = sacchList_15min.get(k+n*front_num).getTA30()+alldata51;
					alldata52 = sacchList_15min.get(k+n*front_num).getTA31()+alldata52;
					alldata53 = sacchList_15min.get(k+n*front_num).getTA32()+alldata53;
					alldata54 = sacchList_15min.get(k+n*front_num).getTA33()+alldata54;
					alldata55 = sacchList_15min.get(k+n*front_num).getTA34()+alldata55;
					alldata56 = sacchList_15min.get(k+n*front_num).getTA35()+alldata56;
					alldata57 = sacchList_15min.get(k+n*front_num).getTA36()+alldata57;
					alldata58 = sacchList_15min.get(k+n*front_num).getTA37()+alldata58;
					alldata59 = sacchList_15min.get(k+n*front_num).getTA38()+alldata59;
					alldata60 = sacchList_15min.get(k+n*front_num).getTA39()+alldata60;
					alldata61 = sacchList_15min.get(k+n*front_num).getTA40()+alldata61;
					alldata62 = sacchList_15min.get(k+n*front_num).getTA41()+alldata62;
					alldata63 = sacchList_15min.get(k+n*front_num).getTA42()+alldata63;
					alldata64 = sacchList_15min.get(k+n*front_num).getTA43()+alldata64;
					alldata65 = sacchList_15min.get(k+n*front_num).getTA44()+alldata65;
					alldata66 = sacchList_15min.get(k+n*front_num).getTA45()+alldata66;
					alldata67 = sacchList_15min.get(k+n*front_num).getTA46()+alldata67;
					alldata68 = sacchList_15min.get(k+n*front_num).getTA47()+alldata68;
					alldata69 = sacchList_15min.get(k+n*front_num).getTA48()+alldata69;
					alldata70 = sacchList_15min.get(k+n*front_num).getTA49()+alldata70;
					alldata71 = sacchList_15min.get(k+n*front_num).getTA50()+alldata71;
					alldata72 = sacchList_15min.get(k+n*front_num).getTA51()+alldata72;
					alldata73 = sacchList_15min.get(k+n*front_num).getTA52()+alldata73;
					alldata74 = sacchList_15min.get(k+n*front_num).getTA53()+alldata74;
					alldata75 = sacchList_15min.get(k+n*front_num).getTA54()+alldata75;
					alldata76 = sacchList_15min.get(k+n*front_num).getTA55()+alldata76;
					alldata77 = sacchList_15min.get(k+n*front_num).getTA56()+alldata77;
					alldata78 = sacchList_15min.get(k+n*front_num).getTA57()+alldata78;
					alldata79 = sacchList_15min.get(k+n*front_num).getTA58()+alldata79;
					alldata80 = sacchList_15min.get(k+n*front_num).getTA59()+alldata80;
					alldata81 = sacchList_15min.get(k+n*front_num).getTA60()+alldata81;
					alldata82 = sacchList_15min.get(k+n*front_num).getTA61()+alldata82;
					alldata83 = sacchList_15min.get(k+n*front_num).getTA62()+alldata83;
					alldata84 = sacchList_15min.get(k+n*front_num).getTA63()+alldata84;
				
				}
				
				sacch_obj.setRX_LEV_Full_47_50(alldata0);
				sacch_obj.setRX_LEV_Full_51_55(alldata1);
				sacch_obj.setRX_LEV_Full_56_60(alldata2);
				sacch_obj.setRX_LEV_Full_61_65(alldata3);
				sacch_obj.setRX_LEV_Full_66_70(alldata4);
				sacch_obj.setRX_LEV_Full_71_75(alldata5);
				sacch_obj.setRX_LEV_Full_76_80(alldata6);
				sacch_obj.setRX_LEV_Full_81_85(alldata7);
				sacch_obj.setRX_LEV_Full_86_90(alldata8);
				sacch_obj.setRX_LEV_Full_91_95(alldata9);
				sacch_obj.setRX_LEV_Full_96_100(alldata10);
				sacch_obj.setRX_LEV_Full_101_105(alldata11);
				sacch_obj.setRX_LEV_Full_106_110(alldata12);
				sacch_obj.setRX_QUAL_Full0(alldata13);
				sacch_obj.setRX_QUAL_Full1(alldata14);
				sacch_obj.setRX_QUAL_Full2(alldata15);
				sacch_obj.setRX_QUAL_Full3(alldata16);
				sacch_obj.setRX_QUAL_Full4(alldata17);
				sacch_obj.setRX_QUAL_Full5(alldata18);
				sacch_obj.setRX_QUAL_Full6(alldata19);
				sacch_obj.setRX_QUAL_Full7(alldata20);
				sacch_obj.setTA1(alldata21);
				sacch_obj.setTA2(alldata22);
				sacch_obj.setTA3(alldata23);
				sacch_obj.setTA4(alldata24);
				sacch_obj.setTA5(alldata25);
				sacch_obj.setTA6(alldata26);
				sacch_obj.setTA7(alldata27);
				sacch_obj.setTA8(alldata28);
				sacch_obj.setTA9(alldata29);
				sacch_obj.setTA10(alldata30);
				sacch_obj.setTA11(alldata31);
				sacch_obj.setTA12(alldata32);
				sacch_obj.setTA13(alldata33);
				sacch_obj.setTA14(alldata34);
				sacch_obj.setTA15(alldata35);
				sacch_obj.setTA16(alldata36);
				sacch_obj.setTA17(alldata37);
				sacch_obj.setTA18(alldata38);
				sacch_obj.setTA19(alldata39);
				sacch_obj.setTA20(alldata40);
				sacch_obj.setTA21(alldata41);
				sacch_obj.setTA22(alldata42);
				sacch_obj.setTA23(alldata43);
				sacch_obj.setTA24(alldata44);
				sacch_obj.setTA25(alldata45);
				sacch_obj.setTA26(alldata46);
				sacch_obj.setTA27(alldata47);
				sacch_obj.setTA28(alldata48);
				sacch_obj.setTA29(alldata49);
				sacch_obj.setTA30(alldata50);
				sacch_obj.setTA31(alldata51);
				sacch_obj.setTA32(alldata52);
				sacch_obj.setTA33(alldata53);
				sacch_obj.setTA34(alldata54);
				sacch_obj.setTA35(alldata55);
				sacch_obj.setTA36(alldata56);
				sacch_obj.setTA37(alldata57);
				sacch_obj.setTA38(alldata58);
				sacch_obj.setTA39(alldata59);
				sacch_obj.setTA40(alldata60);
				sacch_obj.setTA41(alldata61);
				sacch_obj.setTA42(alldata62);
				sacch_obj.setTA43(alldata63);
				sacch_obj.setTA44(alldata64);
				sacch_obj.setTA45(alldata65);
				sacch_obj.setTA46(alldata66);
				sacch_obj.setTA47(alldata67);
				sacch_obj.setTA48(alldata68);
				sacch_obj.setTA49(alldata69);
				sacch_obj.setTA50(alldata70);
				sacch_obj.setTA51(alldata71);
				sacch_obj.setTA52(alldata72);
				sacch_obj.setTA53(alldata73);
				sacch_obj.setTA54(alldata74);
				sacch_obj.setTA55(alldata75);
				sacch_obj.setTA56(alldata76);
				sacch_obj.setTA57(alldata77);
				sacch_obj.setTA58(alldata78);
				sacch_obj.setTA59(alldata79);
				sacch_obj.setTA60(alldata80);
				sacch_obj.setTA61(alldata81);
				sacch_obj.setTA62(alldata82);
				sacch_obj.setTA63(alldata83);
				sacchList_hour.add(sacch_obj);
				
			}
			
			count_start=count_start+front_num*key;
		}
		return sacchList_hour;
	}
	
	public static List<SignalingCount> comboSignalingListToHour(int front_num, List<SignalingCount> signalingList_15min,int key, String TimeGap) {
		List<SignalingCount> signalingList_hour = new ArrayList<>();
		
		if(signalingList_15min.size()==0) {
			return signalingList_15min;
		}
		
		int count_start = 0;
		
		if(TimeGap.equals("1小时")) {
			for(int i=0; i<4*front_num; i++) {
				if (new Date(signalingList_15min.get(i).getTimeStamp() + 10).getMinutes() == 0) {
					count_start = i;
					break;
				}
			}//找到第一条整小时的记录
		}
		if(TimeGap.equals("1天")) {
			for(int i=0; i<96*front_num; i++) {
				if(signalingList_15min.get(i).getTimeSlot().startsWith("00:00")) {
					count_start = i;
					break;
				}
			}//找到第一条00:00开始的记录
		}
		int count_start_con = count_start;
		for(int j=0; j<(signalingList_15min.size()-count_start_con)/front_num/key; j++) {

			for(int k=count_start; k<count_start+front_num; k++) {
				SignalingCount signaling_obj = new SignalingCount();

				
				signaling_obj.setFrontProcessorId(signalingList_15min.get(k).getFrontProcessorId());

				signaling_obj.setDate(signalingList_15min.get(k).getDate());
				signaling_obj.setTimeStamp(signalingList_15min.get(k).getTimeStamp());
				if(TimeGap.equals("1小时")) {
					signaling_obj.setTimeSlot(getHourTimeslot(signalingList_15min.get(k).getTimeStamp()));

				}
				if(TimeGap.equals("1天")) {
					signaling_obj.setTimeSlot("00:00-24:00");
					
				}
				int alldata0 = 0;
				int alldata1 = 0;
				int alldata2 = 0;
				int alldata3 = 0;
				int alldata4 = 0;
				int alldata5 = 0;
				int alldata6 = 0;
				int alldata7 = 0;
				int alldata8 = 0;
				int alldata9 = 0;
				int alldata10 = 0;
				int alldata11 = 0;
				int alldata12 = 0;
				int alldata13 = 0;
				int alldata14 = 0;
				int alldata15 = 0;
				int alldata16 = 0;
				int alldata17 = 0;
				int alldata18 = 0;
				int alldata19 = 0;
				int alldata20 = 0;
				int alldata21 = 0;
				int alldata22 = 0;
				int alldata23 = 0;
				int alldata24 = 0;
				int alldata25 = 0;
				int alldata26 = 0;
				int alldata27 = 0;
				int alldata28 = 0;
				int alldata29 = 0;
				int alldata30 = 0;
				int alldata31 = 0;
				int alldata32 = 0;
				int alldata33 = 0;
				int alldata34 = 0;
				int alldata35 = 0;
				int alldata36 = 0;
				int alldata37 = 0;
				int alldata38 = 0;
				int alldata39 = 0;
				int alldata40 = 0;
				int alldata41 = 0;
				int alldata42 = 0;
				int alldata43 = 0;
				int alldata44 = 0;
				int alldata45 = 0;
				int alldata46 = 0;
				int alldata47 = 0;
				int alldata48 = 0;
				int alldata49 = 0;
				int alldata50 = 0;


				for(int n=0; n<key; n++) {
					alldata0 = signalingList_15min.get(k+n*front_num).getFacch_Alerting()+alldata0;
					alldata1 = signalingList_15min.get(k+n*front_num).getFacch_Assignment_Complete()+alldata1;	
					alldata2 = signalingList_15min.get(k+n*front_num).getFacch_Channel_Release()+alldata2;
					alldata3 = signalingList_15min.get(k+n*front_num).getFacch_CM_Service_Accept()+alldata3;
					alldata4 = signalingList_15min.get(k+n*front_num).getFacch_Connect()+alldata4;
					alldata5 = signalingList_15min.get(k+n*front_num).getFacch_Connect_Acknowledge()+alldata5;
					alldata6 = signalingList_15min.get(k+n*front_num).getFacch_Disconnect()+alldata6;
					alldata7 = signalingList_15min.get(k+n*front_num).getFacch_Release()+alldata7;
					alldata8 = signalingList_15min.get(k+n*front_num).getFacch_U_SABM()+alldata8;
					alldata9 = signalingList_15min.get(k+n*front_num).getFacch_U_UA()+alldata9;
					alldata10 = signalingList_15min.get(k+n*front_num).getFacch_Handover_Command()+alldata10;
					alldata11 = signalingList_15min.get(k+n*front_num).getFacch_U_DISC()+alldata11;
					alldata12 = signalingList_15min.get(k+n*front_num).getFacch_Uplink_Busy()+alldata12;
					alldata13 = signalingList_15min.get(k+n*front_num).getFacch_CM_service_Request()+alldata13;
					alldata14 = signalingList_15min.get(k+n*front_num).getFacch_Handover_Access()+alldata14;
					alldata15 = signalingList_15min.get(k+n*front_num).getFacch_Handover_Complete()+alldata15;
					alldata16 = signalingList_15min.get(k+n*front_num).getFacch_Physical_Information()+alldata16;
					alldata17 = signalingList_15min.get(k+n*front_num).getFacch_Release_Complete()+alldata17;
					alldata18 = signalingList_15min.get(k+n*front_num).getFacch_S_REJ()+alldata18;
					alldata19 = signalingList_15min.get(k+n*front_num).getSdcch_Assignment_Command()+alldata19;
					alldata20 = signalingList_15min.get(k+n*front_num).getSdcch_Authentication_Request()+alldata20;
					alldata21 = signalingList_15min.get(k+n*front_num).getSdcch_Authentication_Response()+alldata21;
					alldata22 = signalingList_15min.get(k+n*front_num).getSdcch_Call_Confirmed()+alldata22;
					alldata23 = signalingList_15min.get(k+n*front_num).getSdcch_Call_Proceeding()+alldata23;
					alldata24 = signalingList_15min.get(k+n*front_num).getSdcch_Channel_Release()+alldata24;
					alldata25 = signalingList_15min.get(k+n*front_num).getSdcch_Channel_Request()+alldata25;
					alldata26 = signalingList_15min.get(k+n*front_num).getSdcch_CM_Service_Accept()+alldata26;
					alldata27 = signalingList_15min.get(k+n*front_num).getSdcch_CM_service_Request()+alldata27;
					alldata28 = signalingList_15min.get(k+n*front_num).getSdcch_GPRS_Suspension_Request()+alldata28;
					alldata29 = signalingList_15min.get(k+n*front_num).getSdcch_Identity_Request()+alldata29;
					alldata30 = signalingList_15min.get(k+n*front_num).getSdcch_Identity_Response()+alldata30;
					alldata31 = signalingList_15min.get(k+n*front_num).getSdcch_Imsi_Detach_Indication()+alldata31;
					alldata32 = signalingList_15min.get(k+n*front_num).getSdcch_Location_Updating_Accept()+alldata32;
					alldata33 = signalingList_15min.get(k+n*front_num).getSdcch_Location_Updating_Reject()+alldata33;
					alldata34 = signalingList_15min.get(k+n*front_num).getSdcch_Location_Updating_Request()+alldata34;
					alldata35 = signalingList_15min.get(k+n*front_num).getSdcch_Paging_Response()+alldata35;
					alldata36 = signalingList_15min.get(k+n*front_num).getSdcch_Setup()+alldata36;
					alldata37 = signalingList_15min.get(k+n*front_num).getSdcch_U_DISC()+alldata37;
					alldata38 = signalingList_15min.get(k+n*front_num).getSdcch_U_DM()+alldata38;
					alldata39 = signalingList_15min.get(k+n*front_num).getSdcch_U_UA()+alldata39;
					alldata40 = signalingList_15min.get(k+n*front_num).getSdcch_L2_SUB_UNKNOWN()+alldata40;
					alldata41 = signalingList_15min.get(k+n*front_num).getSdcch_Disconnect()+alldata41;
					alldata42 = signalingList_15min.get(k+n*front_num).getSdcch_Release()+alldata42;
					alldata43 = signalingList_15min.get(k+n*front_num).getSdcch_CM_Service_Abort()+alldata43;
					alldata44 = signalingList_15min.get(k+n*front_num).getSdcch_CM_Service_Reject()+alldata44;
					alldata45 = signalingList_15min.get(k+n*front_num).getSdcch_Facility()+alldata45;
					alldata46 = signalingList_15min.get(k+n*front_num).getSdcch_I_SMS()+alldata46;
					alldata47 = signalingList_15min.get(k+n*front_num).getSdcch_Release_Complete()+alldata47;
					alldata48 = signalingList_15min.get(k+n*front_num).getSdcch_U_SABM()+alldata48;
					alldata49 = signalingList_15min.get(k+n*front_num).getSdcch_Immediate_Assignment_Reject()+alldata49;
					alldata50 = signalingList_15min.get(k+n*front_num).getSdcch_Immediate_Assignment()+alldata50;

				
				}
				
				signaling_obj.setFacch_Alerting(alldata0);
				signaling_obj.setFacch_Assignment_Complete(alldata1);
				signaling_obj.setFacch_Channel_Release(alldata2);
				signaling_obj.setFacch_CM_Service_Accept(alldata3);
				signaling_obj.setFacch_Connect(alldata4);
				signaling_obj.setFacch_Connect_Acknowledge(alldata5);
				signaling_obj.setFacch_Disconnect(alldata6);
				signaling_obj.setFacch_Release(alldata7);
				signaling_obj.setFacch_U_SABM(alldata8);
				signaling_obj.setFacch_U_UA(alldata9);
				signaling_obj.setFacch_Handover_Command(alldata10);
				signaling_obj.setFacch_U_DISC(alldata11);
				signaling_obj.setFacch_Uplink_Busy(alldata12);
				signaling_obj.setFacch_CM_service_Request(alldata13);
				signaling_obj.setFacch_Handover_Access(alldata14);
				signaling_obj.setFacch_Handover_Complete(alldata15);
				signaling_obj.setFacch_Physical_Information(alldata16);
				signaling_obj.setFacch_Release_Complete(alldata17);
				signaling_obj.setFacch_S_REJ(alldata18);
				signaling_obj.setSdcch_Assignment_Command(alldata19);
				signaling_obj.setSdcch_Authentication_Request(alldata20);
				signaling_obj.setSdcch_Authentication_Response(alldata21);
				signaling_obj.setSdcch_Call_Confirmed(alldata22);
				signaling_obj.setSdcch_Call_Proceeding(alldata23);
				signaling_obj.setSdcch_Channel_Release(alldata24);
				signaling_obj.setSdcch_Channel_Request(alldata25);
				signaling_obj.setSdcch_CM_Service_Accept(alldata26);
				signaling_obj.setSdcch_CM_service_Request(alldata27);
				signaling_obj.setSdcch_GPRS_Suspension_Request(alldata28);
				signaling_obj.setSdcch_Identity_Request(alldata29);
				signaling_obj.setSdcch_Identity_Response(alldata30);
				signaling_obj.setSdcch_Imsi_Detach_Indication(alldata31);
				signaling_obj.setSdcch_Location_Updating_Accept(alldata32);
				signaling_obj.setSdcch_Location_Updating_Reject(alldata33);
				signaling_obj.setSdcch_Location_Updating_Request(alldata34);
				signaling_obj.setSdcch_Paging_Response(alldata35);
				signaling_obj.setSdcch_Setup(alldata36);
				signaling_obj.setSdcch_U_DISC(alldata37);
				signaling_obj.setSdcch_U_DM(alldata38);
				signaling_obj.setSdcch_U_UA(alldata39);
				signaling_obj.setSdcch_L2_SUB_UNKNOWN(alldata40);
				signaling_obj.setSdcch_Disconnect(alldata41);
				signaling_obj.setSdcch_Release(alldata42);
				signaling_obj.setSdcch_CM_Service_Abort(alldata43);
				signaling_obj.setSdcch_CM_Service_Reject(alldata44);
				signaling_obj.setSdcch_Facility(alldata45);
				signaling_obj.setSdcch_I_SMS(alldata46);
				signaling_obj.setSdcch_Release_Complete(alldata47);
				signaling_obj.setSdcch_U_SABM(alldata48);
				signaling_obj.setSdcch_Immediate_Assignment_Reject(alldata49);
				signaling_obj.setSdcch_Immediate_Assignment(alldata50);
				signalingList_hour.add(signaling_obj);
				
			}
			
			count_start=count_start+front_num*key;
		}
		return signalingList_hour;
	}
	
	public static List<ServiceCount> comboServiceListToHour(int front_num, List<ServiceCount> serviceList_15min,int key, String TimeGap) {

		List<ServiceCount> serviceList_hour = new ArrayList<>();
		
		if(serviceList_15min.size()==0) {
			return serviceList_15min;
		}
		
		int count_start = 0;
		if(TimeGap.equals("1小时")) {
			for(int i=0; i<4*front_num; i++) {
				if (new Date(serviceList_15min.get(i).getTimeStamp() + 10).getMinutes() == 0) {
					count_start = i;
					break;
				}
			}//找到第一条整小时的记录
		}
		if(TimeGap.equals("1天")) {
			for(int i=0; i<96*front_num; i++) {
				if(serviceList_15min.get(i).getTimeSlot().startsWith("00:00")) {
					count_start = i;
					break;
				}
			}//找到第一条00:00开始的记录
		}
		System.out.println("count_start"+count_start);
		System.out.println("front_num"+front_num);
		int count_start_con = count_start;
		for(int j=0; j<(serviceList_15min.size()-count_start_con)/front_num/key; j++) {

			for(int k=count_start; k<count_start+front_num; k++) {
				ServiceCount service_obj = new ServiceCount();
				

				service_obj.setFrontProcessorId(serviceList_15min.get(k).getFrontProcessorId());

				service_obj.setDate(serviceList_15min.get(k).getDate());
				service_obj.setTimeStamp(serviceList_15min.get(k).getTimeStamp());
				if(TimeGap.equals("1小时")) {
					service_obj.setTimeSlot(getHourTimeslot(serviceList_15min.get(k).getTimeStamp()));

				}
				if(TimeGap.equals("1天")) {
					service_obj.setTimeSlot("00:00-24:00");
				}
				int alldata0 = 0;
				int alldata1 = 0;
				int alldata2 = 0;
				int alldata3 = 0;
				int alldata4 = 0;
				int alldata5 = 0;
				int alldata6 = 0;
				int alldata7 = 0;
				int alldata8 = 0;
				int alldata9 = 0;
				int alldata10 = 0;
				int alldata11 = 0;
				int alldata12 = 0;
				int alldata13 = 0;
				int alldata14 = 0;
				int alldata15 = 0;
				int alldata16 = 0;
				int alldata17 = 0;
				int alldata18 = 0;
				int alldata19 = 0;
				int alldata20 = 0;
				int alldata21 = 0;
				int alldata22 = 0;
				int alldata23 = 0;
				int alldata24 = 0;
				int alldata25 = 0;
				int alldata26 = 0;
				int alldata27 = 0;
				int alldata28 = 0;
				int alldata29 = 0;
				int alldata30 = 0;
				int alldata31 = 0;
				int alldata32 = 0;
				int alldata33 = 0;
				int alldata34 = 0;
				int alldata35 = 0;
				int alldata36 = 0;
				int alldata37 = 0;
				int alldata38 = 0;
				int alldata39 = 0;
				int alldata40 = 0;
				int alldata41 = 0;
				int alldata42 = 0;
				int alldata43 = 0;
				int alldata44 = 0;
				int alldata45 = 0;
				int alldata46 = 0;
				int alldata47 = 0;
				int alldata48 = 0;
				int alldata49 = 0;
				int alldata50 = 0;
				int alldata51 = 0;
				int alldata52 = 0;
				int alldata53 = 0;
				int alldata54 = 0;
				int alldata55 = 0;
				int alldata56 = 0;
				int alldata57 = 0;
				int alldata58 = 0;
				int alldata59 = 0;
				int alldata60 = 0;
				int alldata61 = 0;
				int alldata62 = 0;
			

				for(int n=0; n<key; n++) {
					alldata0 = serviceList_15min.get(k+n*front_num).getALayer_Message159()+alldata0;
					alldata1 = serviceList_15min.get(k+n*front_num).getALayer_Message158()+alldata1;	
					alldata2 = serviceList_15min.get(k+n*front_num).getALayer_Message157()+alldata2;
					alldata3 = serviceList_15min.get(k+n*front_num).getALayer_Message156()+alldata3;
					alldata4 = serviceList_15min.get(k+n*front_num).getALayer_Message155()+alldata4;
					alldata5 = serviceList_15min.get(k+n*front_num).getALayer_Message154()+alldata5;
					alldata6 = serviceList_15min.get(k+n*front_num).getALayer_Message153()+alldata6;
					alldata7 = serviceList_15min.get(k+n*front_num).getALayer_Message152()+alldata7;
					alldata8 = serviceList_15min.get(k+n*front_num).getALayer_Message151()+alldata8;
					alldata9 = serviceList_15min.get(k+n*front_num).getALayer_Message150()+alldata9;
					alldata10 = serviceList_15min.get(k+n*front_num).getALayer_Message149()+alldata10;
					alldata11 = serviceList_15min.get(k+n*front_num).getALayer_Message147()+alldata11;
					alldata12 = serviceList_15min.get(k+n*front_num).getALayer_Message146()+alldata12;
					alldata13 = serviceList_15min.get(k+n*front_num).getALayer_Message138()+alldata13;
					alldata14 = serviceList_15min.get(k+n*front_num).getALayer_Message137()+alldata14;
					alldata15 = serviceList_15min.get(k+n*front_num).getALayer_Message136()+alldata15;
					alldata16 = serviceList_15min.get(k+n*front_num).getALayer_Message132()+alldata16;
					alldata17 = serviceList_15min.get(k+n*front_num).getALayer_Message130()+alldata17;
					alldata18 = serviceList_15min.get(k+n*front_num).getALayer_Message129()+alldata18;
					alldata19 = serviceList_15min.get(k+n*front_num).getALayer_Message45()+alldata19;
					alldata20 = serviceList_15min.get(k+n*front_num).getALayer_Message43()+alldata20;
					alldata21 = serviceList_15min.get(k+n*front_num).getALayer_Message41()+alldata21;
					alldata22 = serviceList_15min.get(k+n*front_num).getALayer_Message40()+alldata22;
					alldata23 = serviceList_15min.get(k+n*front_num).getALayer_Message39()+alldata23;
					alldata24 = serviceList_15min.get(k+n*front_num).getALayer_Message38()+alldata24;
					alldata25 = serviceList_15min.get(k+n*front_num).getALayer_Message37()+alldata25;
					alldata26 = serviceList_15min.get(k+n*front_num).getALayer_Message34()+alldata26;
					alldata27 = serviceList_15min.get(k+n*front_num).getALayer_Message33()+alldata27;
					alldata28 = serviceList_15min.get(k+n*front_num).getALayer_Message32()+alldata28;
					alldata29 = serviceList_15min.get(k+n*front_num).getALayer_Message28()+alldata29;
					alldata30 = serviceList_15min.get(k+n*front_num).getALayer_Message27()+alldata30;
					alldata31 = serviceList_15min.get(k+n*front_num).getALayer_Message24()+alldata31;
					alldata32 = serviceList_15min.get(k+n*front_num).getALayer_Message18()+alldata32;
					alldata33 = serviceList_15min.get(k+n*front_num).getALayer_Message16()+alldata33;
					alldata34 = serviceList_15min.get(k+n*front_num).getALayer_Message15()+alldata34;
					alldata35 = serviceList_15min.get(k+n*front_num).getALayer_Message9()+alldata35;
					alldata36 = serviceList_15min.get(k+n*front_num).getALayer_Message8()+alldata36;
					alldata37 = serviceList_15min.get(k+n*front_num).getALayer_Message6()+alldata37;
					alldata38 = serviceList_15min.get(k+n*front_num).getALayer_Message3()+alldata38;
					alldata39 = serviceList_15min.get(k+n*front_num).getSLayer_AR()+alldata39;
					alldata40 = serviceList_15min.get(k+n*front_num).getSLayer_AU1()+alldata40;
					alldata41 = serviceList_15min.get(k+n*front_num).getSLayer_AU2()+alldata41;
					alldata42 = serviceList_15min.get(k+n*front_num).getSLayer_AU3()+alldata42;
					alldata43 = serviceList_15min.get(k+n*front_num).getSLayer_DI()+alldata43;
					alldata44 = serviceList_15min.get(k+n*front_num).getSLayer_DT()+alldata44;
					alldata45 = serviceList_15min.get(k+n*front_num).getTLayer_DT()+alldata45;
					alldata46 = serviceList_15min.get(k+n*front_num).getTLayer_AK()+alldata46;
					alldata47 = serviceList_15min.get(k+n*front_num).getTLayer_DR()+alldata47;
					alldata48 = serviceList_15min.get(k+n*front_num).getTLayer_Invalid()+alldata48;
					alldata49 = serviceList_15min.get(k+n*front_num).getTLayer_CR()+alldata49;
					alldata50 = serviceList_15min.get(k+n*front_num).getTLayer_CC()+alldata50;
					alldata51 = serviceList_15min.get(k+n*front_num).getTLayer_DC()+alldata51;
					alldata52 = serviceList_15min.get(k+n*front_num).getTLayer_ER()+alldata52;
					alldata53 = serviceList_15min.get(k+n*front_num).getHdlc_SREJ()+alldata53;
					alldata54 = serviceList_15min.get(k+n*front_num).getHdlc_SABME()+alldata54;
					alldata55 = serviceList_15min.get(k+n*front_num).getHdlc_UA()+alldata55;
					alldata56 = serviceList_15min.get(k+n*front_num).getHdlc_False()+alldata56;
					alldata57 = serviceList_15min.get(k+n*front_num).getHdlc_invalid()+alldata57;
					alldata58 = serviceList_15min.get(k+n*front_num).getHdlc_DISC()+alldata58;
					alldata59 = serviceList_15min.get(k+n*front_num).getHdlc_REJ()+alldata59;
					alldata60 = serviceList_15min.get(k+n*front_num).getHdlc_FRMR()+alldata60;
					alldata61 = serviceList_15min.get(k+n*front_num).getHdlc_DM()+alldata61;
					alldata62 = serviceList_15min.get(k+n*front_num).getHdlc_RNR()+alldata62;
					
				}
				
				service_obj.setALayer_Message159(alldata0);
				service_obj.setALayer_Message158(alldata1);
				service_obj.setALayer_Message157(alldata2);
				service_obj.setALayer_Message156(alldata3);
				service_obj.setALayer_Message155(alldata4);
				service_obj.setALayer_Message154(alldata5);
				service_obj.setALayer_Message153(alldata6);
				service_obj.setALayer_Message152(alldata7);
				service_obj.setALayer_Message151(alldata8);
				service_obj.setALayer_Message150(alldata9);
				service_obj.setALayer_Message149(alldata10);
				service_obj.setALayer_Message147(alldata11);
				service_obj.setALayer_Message146(alldata12);
				service_obj.setALayer_Message138(alldata13);
				service_obj.setALayer_Message137(alldata14);
				service_obj.setALayer_Message136(alldata15);
				service_obj.setALayer_Message132(alldata16);
				service_obj.setALayer_Message130(alldata17);
				service_obj.setALayer_Message129(alldata18);
				service_obj.setALayer_Message45(alldata19);
				service_obj.setALayer_Message43(alldata20);
				service_obj.setALayer_Message41(alldata21);
				service_obj.setALayer_Message40(alldata22);
				service_obj.setALayer_Message39(alldata23);
				service_obj.setALayer_Message38(alldata24);
				service_obj.setALayer_Message37(alldata25);
				service_obj.setALayer_Message34(alldata26);
				service_obj.setALayer_Message33(alldata27);
				service_obj.setALayer_Message32(alldata28);
				service_obj.setALayer_Message28(alldata29);
				service_obj.setALayer_Message27(alldata30);
				service_obj.setALayer_Message24(alldata31);
				service_obj.setALayer_Message18(alldata32);
				service_obj.setALayer_Message16(alldata33);
				service_obj.setALayer_Message15(alldata34);
				service_obj.setALayer_Message9(alldata35);
				service_obj.setALayer_Message8(alldata36);
				service_obj.setALayer_Message6(alldata37);
				service_obj.setALayer_Message3(alldata38);
				service_obj.setSLayer_AR(alldata39);
				service_obj.setSLayer_AU1(alldata40);
				service_obj.setSLayer_AU2(alldata41);
				service_obj.setSLayer_AU3(alldata42);
				service_obj.setSLayer_DI(alldata43);
				service_obj.setSLayer_DT(alldata44);
				service_obj.setTLayer_DT(alldata45);
				service_obj.setTLayer_AK(alldata46);
				service_obj.setTLayer_DR(alldata47);
				service_obj.setTLayer_Invalid(alldata48);
				service_obj.setTLayer_CR(alldata49);
				service_obj.setTLayer_CC(alldata50);
				service_obj.setTLayer_DC(alldata51);
				service_obj.setTLayer_ER(alldata52);
				service_obj.setHdlc_SREJ(alldata53);
				service_obj.setHdlc_SABME(alldata54);
				service_obj.setHdlc_UA(alldata55);
				service_obj.setHdlc_False(alldata56);
				service_obj.setHdlc_invalid(alldata57);
				service_obj.setHdlc_DISC(alldata58);
				service_obj.setHdlc_REJ(alldata59);
				service_obj.setHdlc_FRMR(alldata60);
				service_obj.setHdlc_DM(alldata61);
				service_obj.setHdlc_RNR(alldata62);
				
				serviceList_hour.add(service_obj);
				
			}
			
			count_start=count_start+front_num*key;
		}
		return serviceList_hour;
	}
	
	public static List<GPRSDefaultCount> comboGPRSDefaultListToHour(int front_num, List<GPRSDefaultCount> gprsDefaultList_15min, int key, String TimeGap) {
	List<GPRSDefaultCount> gprsDefaultList_hour = new ArrayList<>();
		
		if(gprsDefaultList_15min.size()==0) {
			return gprsDefaultList_15min;
		}
		
		int count_start = 0;
		if(TimeGap.equals("1小时")) {
			for(int i=0; i<4*front_num; i++) {
				if (new Date(gprsDefaultList_15min.get(i).getTimeStamp() + 10).getMinutes() == 0) {
					count_start = i;
					break;
				}
			}//找到第一条整小时的记录
		}
		if(TimeGap.equals("1天")) {
			for(int i=0; i<96*front_num; i++) {
				if(gprsDefaultList_15min.get(i).getTimeSlot().startsWith("00:00")) {
					count_start = i;
					break;
				}
			}//找到第一条00:00开始的记录
		}
		System.out.println("count_start"+count_start);
		System.out.println("front_num"+front_num);
		int count_start_con = count_start;
		for(int j=0; j<(gprsDefaultList_15min.size()-count_start_con)/front_num/key; j++) {

			for(int k=count_start; k<count_start+front_num; k++) {
				GPRSDefaultCount gprsDefault_obj = new GPRSDefaultCount();
				

				gprsDefault_obj.setFrontProcessorId(gprsDefaultList_15min.get(k).getFrontProcessorId());

				gprsDefault_obj.setDate(gprsDefaultList_15min.get(k).getDate());
				gprsDefault_obj.setTimeStamp(gprsDefaultList_15min.get(k).getTimeStamp());
				if(TimeGap.equals("1小时")) {
					gprsDefault_obj.setTimeSlot(getHourTimeslot(gprsDefaultList_15min.get(k).getTimeStamp()));

				}
				if(TimeGap.equals("1天")) {
					gprsDefault_obj.setTimeSlot("00:00-24:00");
				}

			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;		
			
			for(int n=0; n<key; n++) {
				alldata0 = gprsDefaultList_15min.get(k + n * front_num).getAttach_request() + alldata0;
				alldata1 = gprsDefaultList_15min.get(k + n * front_num).getAttach_accept() + alldata1;
				alldata2 = gprsDefaultList_15min.get(k + n * front_num).getAttach_complete() + alldata2;
				alldata3 = gprsDefaultList_15min.get(k + n * front_num).getAttach_reject() + alldata3;
				alldata4 = gprsDefaultList_15min.get(k + n * front_num).getDetach_request() + alldata4;
				alldata5 = gprsDefaultList_15min.get(k + n * front_num).getDetach_accept() + alldata5;
				alldata6 = gprsDefaultList_15min.get(k + n * front_num).getPTMSI_reallocation_command() + alldata6;
				alldata7 = gprsDefaultList_15min.get(k + n * front_num).getPTMSI_reallocation_complete() + alldata7;
				alldata8 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_ciphering_request() + alldata8;
				alldata9 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_Ciphering_Failure()+ alldata9;
				alldata10 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_ciphering_reject() + alldata10;
				alldata11 = gprsDefaultList_15min.get(k + n * front_num).getIdentity_request() + alldata11;
				alldata12 = gprsDefaultList_15min.get(k + n * front_num).getIdentity_response() + alldata12;
				alldata13 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_request() + alldata13;
				alldata14 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_accept() + alldata14;
				alldata15 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_complete() + alldata15;
				alldata16 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_reject() + alldata16;
				alldata17 = gprsDefaultList_15min.get(k + n * front_num).getGMM_Status() + alldata17;
				alldata18 = gprsDefaultList_15min.get(k + n * front_num).getGMM_Information() + alldata18;
				alldata19 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_request() + alldata19;
				alldata20 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_accept() + alldata20;
				alldata21 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_reject()+ alldata21;
				alldata22 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Request() + alldata22;
				alldata23 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Accept() + alldata23;
				alldata24 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Reject() + alldata24;
				alldata25 = gprsDefaultList_15min.get(k + n * front_num).getRequest_PDP_context_activation() + alldata25;
				alldata26 = gprsDefaultList_15min.get(k + n * front_num).getRequest_PDP_context_activation_reject() + alldata26;
				alldata27 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_request_N_to_M() + alldata27;
				alldata28 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_request_M_to_N() + alldata28;
				alldata29 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_accept_N_to_M() + alldata29;
				alldata30 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_accept_M_to_N() + alldata30;
				alldata31 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_Context_Reject() + alldata31;
				alldata32 = gprsDefaultList_15min.get(k + n * front_num).getDeactivate_PDP_context_request() + alldata32;
				alldata33 = gprsDefaultList_15min.get(k + n * front_num).getDeactivate_PDP_context_accept() + alldata33;
				alldata34 = gprsDefaultList_15min.get(k + n * front_num).getRequest_Secondary_PDP_Context_Activation() + alldata34;
				alldata35 = gprsDefaultList_15min.get(k + n * front_num).getRequest_Secondary_PDP_Context_Activation_Reject() + alldata35;
				alldata36 = gprsDefaultList_15min.get(k + n * front_num).getNotification() + alldata36;


			}

			gprsDefault_obj.setAttach_request(alldata0);
			gprsDefault_obj.setAttach_accept(alldata1);
			gprsDefault_obj.setAttach_complete(alldata2);
			gprsDefault_obj.setAttach_reject(alldata3);
			gprsDefault_obj.setDetach_request(alldata4);
			gprsDefault_obj.setDetach_accept(alldata5);
			gprsDefault_obj.setPTMSI_reallocation_command(alldata6);
			gprsDefault_obj.setPTMSI_reallocation_complete(alldata7);
			gprsDefault_obj.setAuthentication_and_ciphering_request(alldata8);		
			gprsDefault_obj.setAuthentication_and_Ciphering_Failure(alldata9);
			gprsDefault_obj.setAuthentication_and_ciphering_reject(alldata10);
			gprsDefault_obj.setIdentity_request(alldata11);
			gprsDefault_obj.setIdentity_response(alldata12);
			gprsDefault_obj.setRouting_area_update_request(alldata13);
			gprsDefault_obj.setRouting_area_update_accept(alldata14);
			gprsDefault_obj.setRouting_area_update_complete(alldata15);
			gprsDefault_obj.setRouting_area_update_reject(alldata16);
			gprsDefault_obj.setGMM_Status(alldata17);
			gprsDefault_obj.setGMM_Information(alldata18);
			gprsDefault_obj.setActivate_PDP_context_request(alldata19);
			gprsDefault_obj.setActivate_PDP_context_accept(alldata20);
			gprsDefault_obj.setActivate_PDP_context_reject(alldata21);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Request(alldata22);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Accept(alldata23);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Reject(alldata24);
			gprsDefault_obj.setRequest_PDP_context_activation(alldata25);
			gprsDefault_obj.setRequest_PDP_context_activation_reject(alldata26);
			gprsDefault_obj.setModify_PDP_context_request_N_to_M(alldata27);
			gprsDefault_obj.setModify_PDP_context_request_M_to_N(alldata28);
			gprsDefault_obj.setModify_PDP_context_accept_N_to_M(alldata29);
			gprsDefault_obj.setModify_PDP_context_accept_M_to_N(alldata30);
			gprsDefault_obj.setModify_PDP_Context_Reject(alldata31);
			gprsDefault_obj.setDeactivate_PDP_context_request(alldata32);
			gprsDefault_obj.setDeactivate_PDP_context_accept(alldata33);
			gprsDefault_obj.setRequest_PDP_context_activation(alldata34);
			gprsDefault_obj.setRequest_PDP_context_activation_reject(alldata35);
			gprsDefault_obj.setNotification(alldata36);
			gprsDefaultList_hour.add(gprsDefault_obj);

			}
			
			count_start=count_start+front_num*key;
		}
		return gprsDefaultList_hour;
	}

	public static List<GPRSFullCount> comboGPRSFullListToHour(int front_num, List<GPRSFullCount> gprsFullList_15min, int key, String TimeGap) {
		List<GPRSFullCount> gprsFullList_hour = new ArrayList<>();
		if(gprsFullList_15min.size()==0) {
			return gprsFullList_15min;
		}
		
		int count_start = 0;
		if(TimeGap.equals("1小时")) {
			for(int i=0; i<4*front_num; i++) {
				if (new Date(gprsFullList_15min.get(i).getTimeStamp() + 10).getMinutes() == 0) {
					count_start = i;
					break;
				}
			}//找到第一条整小时的记录
		}
		if(TimeGap.equals("1天")) {
			for(int i=0; i<96*front_num; i++) {
				if(gprsFullList_15min.get(i).getTimeSlot().startsWith("00:00")) {
					count_start = i;
					break;
				}
			}//找到第一条00:00开始的记录
		}
		System.out.println("count_start"+count_start);
		System.out.println("front_num"+front_num);
		int count_start_con = count_start;
		for(int j=0; j<(gprsFullList_15min.size()-count_start_con)/front_num/key; j++) {

			for(int k=count_start; k<count_start+front_num; k++) {
				GPRSFullCount gprsFull_obj = new GPRSFullCount();
				

				gprsFull_obj.setFrontProcessorId(gprsFullList_15min.get(k).getFrontProcessorId());

				gprsFull_obj.setDate(gprsFullList_15min.get(k).getDate());
				gprsFull_obj.setTimeStamp(gprsFullList_15min.get(k).getTimeStamp());
				if(TimeGap.equals("1小时")) {
					gprsFull_obj.setTimeSlot(getHourTimeslot(gprsFullList_15min.get(k).getTimeStamp()));

				}
				if(TimeGap.equals("1天")) {
					gprsFull_obj.setTimeSlot("00:00-24:00");
				}

				int alldata0 = 0;
				int alldata1 = 0;
				int alldata2 = 0;
				int alldata3 = 0;
				int alldata4 = 0;
				int alldata5 = 0;
				int alldata6 = 0;
				int alldata7 = 0;
				int alldata8 = 0;
				int alldata9 = 0;
				int alldata10 = 0;
				int alldata11 = 0;
				int alldata12 = 0;
				int alldata13 = 0;
				int alldata14 = 0;
				int alldata15 = 0;
				int alldata16 = 0;
				int alldata17 = 0;
				int alldata18 = 0;
				int alldata19 = 0;
				int alldata20 = 0;
				int alldata21 = 0;
				int alldata22 = 0;
				int alldata23 = 0;
				int alldata24 = 0;
				int alldata25 = 0;
				int alldata26 = 0;
				int alldata27 = 0;
				int alldata28 = 0;
				int alldata29 = 0;
				int alldata30 = 0;
				int alldata31 = 0;
				int alldata32 = 0;
				int alldata33 = 0;
				int alldata34 = 0;
				int alldata35 = 0;
				int alldata36 = 0;
				int alldata37 = 0;
				int alldata38 = 0;
				int alldata39 = 0;
				int alldata40 = 0;
				int alldata41 = 0;

				for(int n=0; n<key; n++) {
					alldata0 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Query_Qequest() + alldata0;
					alldata1 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Query_Request() + alldata1;
					alldata2 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Update_Request() + alldata2;
					alldata3 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Update_Request() + alldata3;
					alldata4 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Update_Response() + alldata4;
					alldata5 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Update_Response() + alldata5;
					alldata6 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Query_Response() + alldata6;
					alldata7 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Query_Response() + alldata7;
					alldata8 = gprsFullList_15min.get(k + n * front_num).getGRIS_Detect_Request() + alldata8;
					alldata9 = gprsFullList_15min.get(k + n * front_num).getGRIS_Detect_Response() + alldata9;
					alldata10 = gprsFullList_15min.get(k + n * front_num).getTrainNo_Send() + alldata10;
					alldata11 = gprsFullList_15min.get(k + n * front_num).getTrain_Stop() + alldata11;
					alldata12 = gprsFullList_15min.get(k + n * front_num).getTrain_Start() + alldata12;
					alldata13 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send_All() + alldata13;
					alldata14 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send() + alldata14;
					alldata15 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Resend() + alldata15;
					alldata16 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send_All() + alldata16;
					alldata17 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send() + alldata17;
					alldata18 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Resend() + alldata18;
					alldata19 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send_All() + alldata19;
					alldata20 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send() + alldata20;
					alldata21 = gprsFullList_15min.get(k + n * front_num).getDispatch_Resend() + alldata21;
					alldata22 = gprsFullList_15min.get(k + n * front_num).getRed_License_Send() + alldata22;
					alldata23 = gprsFullList_15min.get(k + n * front_num).getGreen_License_Send() + alldata23;
					alldata24 = gprsFullList_15min.get(k + n * front_num).getTrain_Work_Command() + alldata24;
					alldata25 = gprsFullList_15min.get(k + n * front_num).getTrain_Work_Confirmed() + alldata25;
					alldata26 = gprsFullList_15min.get(k + n * front_num).getInspection_Detect() + alldata26;
					alldata27 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm_All() + alldata27;
					alldata28 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm() + alldata28;
					alldata29 = gprsFullList_15min.get(k + n * front_num).getManu_Total_Dispatch_Confirm_All() + alldata29;
					alldata30 = gprsFullList_15min.get(k + n * front_num).getManu_Total_Dispatch_Confirm() + alldata30;
					alldata31 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send_Success() + alldata31;
					alldata32 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm_All() + alldata32;
					alldata33 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm() + alldata33;
					alldata34 = gprsFullList_15min.get(k + n * front_num).getManu_Dispatch_Confirm_all() + alldata34;
					alldata35 = gprsFullList_15min.get(k + n * front_num).getManu_Dispatch_Confirm() + alldata35;
					alldata36 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send_Success() + alldata36;
					alldata37 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_AutoComfirm_All() + alldata37;
					alldata38 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_AutoComfirm() + alldata38;
					alldata39 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_ManuComfirm_All() + alldata39;
					alldata40 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_ManuComfirm() + alldata40;
					alldata41 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send_Success() + alldata41;

				}

				gprsFull_obj.setGRIS_IP_Query_Qequest(alldata0);
				gprsFull_obj.setMGRIS_IP_Query_Request(alldata1);
				gprsFull_obj.setGRIS_IP_Update_Request(alldata2);
				gprsFull_obj.setMGRIS_IP_Update_Request(alldata3);
				gprsFull_obj.setGRIS_IP_Update_Response(alldata4);
				gprsFull_obj.setMGRIS_IP_Update_Response(alldata5);
				gprsFull_obj.setGRIS_IP_Query_Response(alldata6);
				gprsFull_obj.setMGRIS_IP_Query_Response(alldata7);
				gprsFull_obj.setGRIS_Detect_Request(alldata8);
				gprsFull_obj.setGRIS_Detect_Response(alldata9);
				gprsFull_obj.setTrainNo_Send(alldata10);
				gprsFull_obj.setTrain_Stop(alldata11);
				gprsFull_obj.setTrain_Start(alldata12);
				gprsFull_obj.setTotal_Dispatch_Send_All(alldata13);
				gprsFull_obj.setTotal_Dispatch_Send(alldata14);
				gprsFull_obj.setTotal_Dispatch_Resend(alldata15);
				gprsFull_obj.setRoute_Prediction_Send_All(alldata16);
				gprsFull_obj.setRoute_Prediction_Send(alldata17);
				gprsFull_obj.setRoute_Prediction_Resend(alldata18);
				gprsFull_obj.setDispatch_Send_All(alldata19);
				gprsFull_obj.setDispatch_Send(alldata20);
				gprsFull_obj.setDispatch_Resend(alldata21);
				gprsFull_obj.setRed_License_Send(alldata22);
				gprsFull_obj.setGreen_License_Send(alldata23);
				gprsFull_obj.setTrain_Work_Command(alldata24);
				gprsFull_obj.setTrain_Work_Confirmed(alldata25);
				gprsFull_obj.setInspection_Detect(alldata26);
				gprsFull_obj.setAuto_Dispatch_Confirm_All(alldata27);
				gprsFull_obj.setAuto_Dispatch_Confirm(alldata28);
				gprsFull_obj.setManu_Total_Dispatch_Confirm_All(alldata29);
				gprsFull_obj.setManu_Total_Dispatch_Confirm(alldata30);
				gprsFull_obj.setTotal_Dispatch_Send_Success(alldata31);
				gprsFull_obj.setAuto_Dispatch_Confirm_All(alldata32);
				gprsFull_obj.setAuto_Dispatch_Confirm(alldata33);
				gprsFull_obj.setManu_Dispatch_Confirm_all(alldata34);
				gprsFull_obj.setManu_Dispatch_Confirm(alldata35);
				gprsFull_obj.setDispatch_Send_Success(alldata36);
				gprsFull_obj.setRoute_Prediction_AutoComfirm_All(alldata37);
				gprsFull_obj.setRoute_Prediction_AutoComfirm(alldata38);
				gprsFull_obj.setRoute_Prediction_ManuComfirm_All(alldata39);
				gprsFull_obj.setRoute_Prediction_ManuComfirm(alldata40);
				gprsFull_obj.setRoute_Prediction_Send_Success(alldata41);
				gprsFullList_hour.add(gprsFull_obj);
			}			
			count_start=count_start+front_num*key;
		}
		return gprsFullList_hour;
	}	
		
	
	
	public static List<SacchCount> comboSacchListToMonth(int front_num, List<SacchCount> sacchList_15min, String TimeGap) {
		if (sacchList_15min.size() == 0) {
			return sacchList_15min;
		}
		List<SacchCount> sacchList_month = new ArrayList<>();


		for (int k = 0; k < front_num; k++) {
			SacchCount sacch_obj = new SacchCount();


			sacch_obj.setFrontProcessorId(sacchList_15min.get(k).getFrontProcessorId());

			if (TimeGap.equals("总计")) {
				sacch_obj.setDate("总计");
			} else {
				sacch_obj.setDate(sacchList_15min.get(k).getDate().substring(0, 7));
			}
			sacch_obj.setTimeStamp(sacchList_15min.get(k).getTimeStamp());

			DateFormat f = new SimpleDateFormat("MM-dd HH:mm");
			String str1 = f.format(sacchList_15min.get(k).getTimeStamp());
			String str2 = f.format(sacchList_15min.get(sacchList_15min.size() - 1).getTimeStamp() + 900000);

			sacch_obj.setTimeSlot(str1 + "-" + str2);

			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;
			int alldata37 = 0;
			int alldata38 = 0;
			int alldata39 = 0;
			int alldata40 = 0;
			int alldata41 = 0;
			int alldata42 = 0;
			int alldata43 = 0;
			int alldata44 = 0;
			int alldata45 = 0;
			int alldata46 = 0;
			int alldata47 = 0;
			int alldata48 = 0;
			int alldata49 = 0;
			int alldata50 = 0;
			int alldata51 = 0;
			int alldata52 = 0;
			int alldata53 = 0;
			int alldata54 = 0;
			int alldata55 = 0;
			int alldata56 = 0;
			int alldata57 = 0;
			int alldata58 = 0;
			int alldata59 = 0;
			int alldata60 = 0;
			int alldata61 = 0;
			int alldata62 = 0;
			int alldata63 = 0;
			int alldata64 = 0;
			int alldata65 = 0;
			int alldata66 = 0;
			int alldata67 = 0;
			int alldata68 = 0;
			int alldata69 = 0;
			int alldata70 = 0;
			int alldata71 = 0;
			int alldata72 = 0;
			int alldata73 = 0;
			int alldata74 = 0;
			int alldata75 = 0;
			int alldata76 = 0;
			int alldata77 = 0;
			int alldata78 = 0;
			int alldata79 = 0;
			int alldata80 = 0;
			int alldata81 = 0;
			int alldata82 = 0;
			int alldata83 = 0;
			int alldata84 = 0;

			for (int n = 0; n < sacchList_15min.size() / front_num; n++) {
				alldata0 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_47_50() + alldata0;
				alldata1 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_51_55() + alldata1;
				alldata2 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_56_60() + alldata2;
				alldata3 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_61_65() + alldata3;
				alldata4 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_66_70() + alldata4;
				alldata5 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_71_75() + alldata5;
				alldata6 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_76_80() + alldata6;
				alldata7 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_81_85() + alldata7;
				alldata8 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_86_90() + alldata8;
				alldata9 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_91_95() + alldata9;
				alldata10 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_96_100() + alldata10;
				alldata11 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_101_105() + alldata11;
				alldata12 = sacchList_15min.get(k + n * front_num).getRX_LEV_Full_106_110() + alldata12;
				alldata13 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full0() + alldata13;
				alldata14 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full1() + alldata14;
				alldata15 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full2() + alldata15;
				alldata16 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full3() + alldata16;
				alldata17 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full4() + alldata17;
				alldata18 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full5() + alldata18;
				alldata19 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full6() + alldata19;
				alldata20 = sacchList_15min.get(k + n * front_num).getRX_QUAL_Full7() + alldata20;
				alldata21 = sacchList_15min.get(k + n * front_num).getTA0() + alldata21;
				alldata22 = sacchList_15min.get(k + n * front_num).getTA1() + alldata22;
				alldata23 = sacchList_15min.get(k + n * front_num).getTA2() + alldata23;
				alldata24 = sacchList_15min.get(k + n * front_num).getTA3() + alldata24;
				alldata25 = sacchList_15min.get(k + n * front_num).getTA4() + alldata25;
				alldata26 = sacchList_15min.get(k + n * front_num).getTA5() + alldata26;
				alldata27 = sacchList_15min.get(k + n * front_num).getTA6() + alldata27;
				alldata28 = sacchList_15min.get(k + n * front_num).getTA7() + alldata28;
				alldata29 = sacchList_15min.get(k + n * front_num).getTA8() + alldata29;
				alldata30 = sacchList_15min.get(k + n * front_num).getTA9() + alldata30;
				alldata31 = sacchList_15min.get(k + n * front_num).getTA10() + alldata31;
				alldata32 = sacchList_15min.get(k + n * front_num).getTA11() + alldata32;
				alldata33 = sacchList_15min.get(k + n * front_num).getTA12() + alldata33;
				alldata34 = sacchList_15min.get(k + n * front_num).getTA13() + alldata34;
				alldata35 = sacchList_15min.get(k + n * front_num).getTA14() + alldata35;
				alldata36 = sacchList_15min.get(k + n * front_num).getTA15() + alldata36;
				alldata37 = sacchList_15min.get(k + n * front_num).getTA16() + alldata37;
				alldata38 = sacchList_15min.get(k + n * front_num).getTA17() + alldata38;
				alldata39 = sacchList_15min.get(k + n * front_num).getTA18() + alldata39;
				alldata40 = sacchList_15min.get(k + n * front_num).getTA19() + alldata40;
				alldata41 = sacchList_15min.get(k + n * front_num).getTA20() + alldata41;
				alldata42 = sacchList_15min.get(k + n * front_num).getTA21() + alldata42;
				alldata43 = sacchList_15min.get(k + n * front_num).getTA22() + alldata43;
				alldata44 = sacchList_15min.get(k + n * front_num).getTA23() + alldata44;
				alldata45 = sacchList_15min.get(k + n * front_num).getTA24() + alldata45;
				alldata46 = sacchList_15min.get(k + n * front_num).getTA25() + alldata46;
				alldata47 = sacchList_15min.get(k + n * front_num).getTA26() + alldata47;
				alldata48 = sacchList_15min.get(k + n * front_num).getTA27() + alldata48;
				alldata49 = sacchList_15min.get(k + n * front_num).getTA28() + alldata49;
				alldata50 = sacchList_15min.get(k + n * front_num).getTA29() + alldata50;
				alldata51 = sacchList_15min.get(k + n * front_num).getTA30() + alldata51;
				alldata52 = sacchList_15min.get(k + n * front_num).getTA31() + alldata52;
				alldata53 = sacchList_15min.get(k + n * front_num).getTA32() + alldata53;
				alldata54 = sacchList_15min.get(k + n * front_num).getTA33() + alldata54;
				alldata55 = sacchList_15min.get(k + n * front_num).getTA34() + alldata55;
				alldata56 = sacchList_15min.get(k + n * front_num).getTA35() + alldata56;
				alldata57 = sacchList_15min.get(k + n * front_num).getTA36() + alldata57;
				alldata58 = sacchList_15min.get(k + n * front_num).getTA37() + alldata58;
				alldata59 = sacchList_15min.get(k + n * front_num).getTA38() + alldata59;
				alldata60 = sacchList_15min.get(k + n * front_num).getTA39() + alldata60;
				alldata61 = sacchList_15min.get(k + n * front_num).getTA40() + alldata61;
				alldata62 = sacchList_15min.get(k + n * front_num).getTA41() + alldata62;
				alldata63 = sacchList_15min.get(k + n * front_num).getTA42() + alldata63;
				alldata64 = sacchList_15min.get(k + n * front_num).getTA43() + alldata64;
				alldata65 = sacchList_15min.get(k + n * front_num).getTA44() + alldata65;
				alldata66 = sacchList_15min.get(k + n * front_num).getTA45() + alldata66;
				alldata67 = sacchList_15min.get(k + n * front_num).getTA46() + alldata67;
				alldata68 = sacchList_15min.get(k + n * front_num).getTA47() + alldata68;
				alldata69 = sacchList_15min.get(k + n * front_num).getTA48() + alldata69;
				alldata70 = sacchList_15min.get(k + n * front_num).getTA49() + alldata70;
				alldata71 = sacchList_15min.get(k + n * front_num).getTA50() + alldata71;
				alldata72 = sacchList_15min.get(k + n * front_num).getTA51() + alldata72;
				alldata73 = sacchList_15min.get(k + n * front_num).getTA52() + alldata73;
				alldata74 = sacchList_15min.get(k + n * front_num).getTA53() + alldata74;
				alldata75 = sacchList_15min.get(k + n * front_num).getTA54() + alldata75;
				alldata76 = sacchList_15min.get(k + n * front_num).getTA55() + alldata76;
				alldata77 = sacchList_15min.get(k + n * front_num).getTA56() + alldata77;
				alldata78 = sacchList_15min.get(k + n * front_num).getTA57() + alldata78;
				alldata79 = sacchList_15min.get(k + n * front_num).getTA58() + alldata79;
				alldata80 = sacchList_15min.get(k + n * front_num).getTA59() + alldata80;
				alldata81 = sacchList_15min.get(k + n * front_num).getTA60() + alldata81;
				alldata82 = sacchList_15min.get(k + n * front_num).getTA61() + alldata82;
				alldata83 = sacchList_15min.get(k + n * front_num).getTA62() + alldata83;
				alldata84 = sacchList_15min.get(k + n * front_num).getTA63() + alldata84;

			}

			sacch_obj.setRX_LEV_Full_47_50(alldata0);
			sacch_obj.setRX_LEV_Full_51_55(alldata1);
			sacch_obj.setRX_LEV_Full_56_60(alldata2);
			sacch_obj.setRX_LEV_Full_61_65(alldata3);
			sacch_obj.setRX_LEV_Full_66_70(alldata4);
			sacch_obj.setRX_LEV_Full_71_75(alldata5);
			sacch_obj.setRX_LEV_Full_76_80(alldata6);
			sacch_obj.setRX_LEV_Full_81_85(alldata7);
			sacch_obj.setRX_LEV_Full_86_90(alldata8);
			sacch_obj.setRX_LEV_Full_91_95(alldata9);
			sacch_obj.setRX_LEV_Full_96_100(alldata10);
			sacch_obj.setRX_LEV_Full_101_105(alldata11);
			sacch_obj.setRX_LEV_Full_106_110(alldata12);
			sacch_obj.setRX_QUAL_Full0(alldata13);
			sacch_obj.setRX_QUAL_Full1(alldata14);
			sacch_obj.setRX_QUAL_Full2(alldata15);
			sacch_obj.setRX_QUAL_Full3(alldata16);
			sacch_obj.setRX_QUAL_Full4(alldata17);
			sacch_obj.setRX_QUAL_Full5(alldata18);
			sacch_obj.setRX_QUAL_Full6(alldata19);
			sacch_obj.setRX_QUAL_Full7(alldata20);
			sacch_obj.setTA1(alldata21);
			sacch_obj.setTA2(alldata22);
			sacch_obj.setTA3(alldata23);
			sacch_obj.setTA4(alldata24);
			sacch_obj.setTA5(alldata25);
			sacch_obj.setTA6(alldata26);
			sacch_obj.setTA7(alldata27);
			sacch_obj.setTA8(alldata28);
			sacch_obj.setTA9(alldata29);
			sacch_obj.setTA10(alldata30);
			sacch_obj.setTA11(alldata31);
			sacch_obj.setTA12(alldata32);
			sacch_obj.setTA13(alldata33);
			sacch_obj.setTA14(alldata34);
			sacch_obj.setTA15(alldata35);
			sacch_obj.setTA16(alldata36);
			sacch_obj.setTA17(alldata37);
			sacch_obj.setTA18(alldata38);
			sacch_obj.setTA19(alldata39);
			sacch_obj.setTA20(alldata40);
			sacch_obj.setTA21(alldata41);
			sacch_obj.setTA22(alldata42);
			sacch_obj.setTA23(alldata43);
			sacch_obj.setTA24(alldata44);
			sacch_obj.setTA25(alldata45);
			sacch_obj.setTA26(alldata46);
			sacch_obj.setTA27(alldata47);
			sacch_obj.setTA28(alldata48);
			sacch_obj.setTA29(alldata49);
			sacch_obj.setTA30(alldata50);
			sacch_obj.setTA31(alldata51);
			sacch_obj.setTA32(alldata52);
			sacch_obj.setTA33(alldata53);
			sacch_obj.setTA34(alldata54);
			sacch_obj.setTA35(alldata55);
			sacch_obj.setTA36(alldata56);
			sacch_obj.setTA37(alldata57);
			sacch_obj.setTA38(alldata58);
			sacch_obj.setTA39(alldata59);
			sacch_obj.setTA40(alldata60);
			sacch_obj.setTA41(alldata61);
			sacch_obj.setTA42(alldata62);
			sacch_obj.setTA43(alldata63);
			sacch_obj.setTA44(alldata64);
			sacch_obj.setTA45(alldata65);
			sacch_obj.setTA46(alldata66);
			sacch_obj.setTA47(alldata67);
			sacch_obj.setTA48(alldata68);
			sacch_obj.setTA49(alldata69);
			sacch_obj.setTA50(alldata70);
			sacch_obj.setTA51(alldata71);
			sacch_obj.setTA52(alldata72);
			sacch_obj.setTA53(alldata73);
			sacch_obj.setTA54(alldata74);
			sacch_obj.setTA55(alldata75);
			sacch_obj.setTA56(alldata76);
			sacch_obj.setTA57(alldata77);
			sacch_obj.setTA58(alldata78);
			sacch_obj.setTA59(alldata79);
			sacch_obj.setTA60(alldata80);
			sacch_obj.setTA61(alldata81);
			sacch_obj.setTA62(alldata82);
			sacch_obj.setTA63(alldata83);
			sacchList_month.add(sacch_obj);

		}


		return sacchList_month;
	}

	public static List<SignalingCount> comboSignalingListToMonth(int front_num, List<SignalingCount> signalingList_15min, String TimeGap) {
		if (signalingList_15min.size() == 0) {
			return signalingList_15min;
		}
		List<SignalingCount> signalingList_month = new ArrayList<>();

		for (int k = 0; k < front_num; k++) {

			SignalingCount signaling_obj = new SignalingCount();

			signaling_obj.setFrontProcessorId(signalingList_15min.get(k).getFrontProcessorId());
			if (TimeGap.equals("总计")) {
				signaling_obj.setDate("总计");
			} else {

				signaling_obj.setDate(signalingList_15min.get(k).getDate().substring(0, 7));
			}
			signaling_obj.setTimeStamp(signalingList_15min.get(k).getTimeStamp());
			DateFormat f = new SimpleDateFormat("MM-dd HH:mm");
			String str1 = f.format(signalingList_15min.get(k).getTimeStamp());
			String str2 = f.format(signalingList_15min.get(signalingList_15min.size() - 1).getTimeStamp() + 900000);

			signaling_obj.setTimeSlot(str1 + "-" + str2);
			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;
			int alldata37 = 0;
			int alldata38 = 0;
			int alldata39 = 0;
			int alldata40 = 0;
			int alldata41 = 0;
			int alldata42 = 0;
			int alldata43 = 0;
			int alldata44 = 0;
			int alldata45 = 0;
			int alldata46 = 0;
			int alldata47 = 0;
			int alldata48 = 0;
			int alldata49 = 0;
			int alldata50 = 0;

			for (int n = 0; n < signalingList_15min.size() / front_num; n++) {
				alldata0 = signalingList_15min.get(k + n * front_num).getFacch_Alerting() + alldata0;
				alldata1 = signalingList_15min.get(k + n * front_num).getFacch_Assignment_Complete() + alldata1;
				alldata2 = signalingList_15min.get(k + n * front_num).getFacch_Channel_Release() + alldata2;
				alldata3 = signalingList_15min.get(k + n * front_num).getFacch_CM_Service_Accept() + alldata3;
				alldata4 = signalingList_15min.get(k + n * front_num).getFacch_Connect() + alldata4;
				alldata5 = signalingList_15min.get(k + n * front_num).getFacch_Connect_Acknowledge() + alldata5;
				alldata6 = signalingList_15min.get(k + n * front_num).getFacch_Disconnect() + alldata6;
				alldata7 = signalingList_15min.get(k + n * front_num).getFacch_Release() + alldata7;
				alldata8 = signalingList_15min.get(k + n * front_num).getFacch_U_SABM() + alldata8;
				alldata9 = signalingList_15min.get(k + n * front_num).getFacch_U_UA() + alldata9;
				alldata10 = signalingList_15min.get(k + n * front_num).getFacch_Handover_Command() + alldata10;
				alldata11 = signalingList_15min.get(k + n * front_num).getFacch_U_DISC() + alldata11;
				alldata12 = signalingList_15min.get(k + n * front_num).getFacch_Uplink_Busy() + alldata12;
				alldata13 = signalingList_15min.get(k + n * front_num).getFacch_CM_service_Request() + alldata13;
				alldata14 = signalingList_15min.get(k + n * front_num).getFacch_Handover_Access() + alldata14;
				alldata15 = signalingList_15min.get(k + n * front_num).getFacch_Handover_Complete() + alldata15;
				alldata16 = signalingList_15min.get(k + n * front_num).getFacch_Physical_Information() + alldata16;
				alldata17 = signalingList_15min.get(k + n * front_num).getFacch_Release_Complete() + alldata17;
				alldata18 = signalingList_15min.get(k + n * front_num).getFacch_S_REJ() + alldata18;
				alldata19 = signalingList_15min.get(k + n * front_num).getSdcch_Assignment_Command() + alldata19;
				alldata20 = signalingList_15min.get(k + n * front_num).getSdcch_Authentication_Request() + alldata20;
				alldata21 = signalingList_15min.get(k + n * front_num).getSdcch_Authentication_Response() + alldata21;
				alldata22 = signalingList_15min.get(k + n * front_num).getSdcch_Call_Confirmed() + alldata22;
				alldata23 = signalingList_15min.get(k + n * front_num).getSdcch_Call_Proceeding() + alldata23;
				alldata24 = signalingList_15min.get(k + n * front_num).getSdcch_Channel_Release() + alldata24;
				alldata25 = signalingList_15min.get(k + n * front_num).getSdcch_Channel_Request() + alldata25;
				alldata26 = signalingList_15min.get(k + n * front_num).getSdcch_CM_Service_Accept() + alldata26;
				alldata27 = signalingList_15min.get(k + n * front_num).getSdcch_CM_service_Request() + alldata27;
				alldata28 = signalingList_15min.get(k + n * front_num).getSdcch_GPRS_Suspension_Request() + alldata28;
				alldata29 = signalingList_15min.get(k + n * front_num).getSdcch_Identity_Request() + alldata29;
				alldata30 = signalingList_15min.get(k + n * front_num).getSdcch_Identity_Response() + alldata30;
				alldata31 = signalingList_15min.get(k + n * front_num).getSdcch_Imsi_Detach_Indication() + alldata31;
				alldata32 = signalingList_15min.get(k + n * front_num).getSdcch_Location_Updating_Accept() + alldata32;
				alldata33 = signalingList_15min.get(k + n * front_num).getSdcch_Location_Updating_Reject() + alldata33;
				alldata34 = signalingList_15min.get(k + n * front_num).getSdcch_Location_Updating_Request() + alldata34;
				alldata35 = signalingList_15min.get(k + n * front_num).getSdcch_Paging_Response() + alldata35;
				alldata36 = signalingList_15min.get(k + n * front_num).getSdcch_Setup() + alldata36;
				alldata37 = signalingList_15min.get(k + n * front_num).getSdcch_U_DISC() + alldata37;
				alldata38 = signalingList_15min.get(k + n * front_num).getSdcch_U_DM() + alldata38;
				alldata39 = signalingList_15min.get(k + n * front_num).getSdcch_U_UA() + alldata39;
				alldata40 = signalingList_15min.get(k + n * front_num).getSdcch_L2_SUB_UNKNOWN() + alldata40;
				alldata41 = signalingList_15min.get(k + n * front_num).getSdcch_Disconnect() + alldata41;
				alldata42 = signalingList_15min.get(k + n * front_num).getSdcch_Release() + alldata42;
				alldata43 = signalingList_15min.get(k + n * front_num).getSdcch_CM_Service_Abort() + alldata43;
				alldata44 = signalingList_15min.get(k + n * front_num).getSdcch_CM_Service_Reject() + alldata44;
				alldata45 = signalingList_15min.get(k + n * front_num).getSdcch_Facility() + alldata45;
				alldata46 = signalingList_15min.get(k + n * front_num).getSdcch_I_SMS() + alldata46;
				alldata47 = signalingList_15min.get(k + n * front_num).getSdcch_Release_Complete() + alldata47;
				alldata48 = signalingList_15min.get(k + n * front_num).getSdcch_U_SABM() + alldata48;
				alldata49 = signalingList_15min.get(k + n * front_num).getSdcch_Immediate_Assignment_Reject() + alldata49;
				alldata50 = signalingList_15min.get(k + n * front_num).getSdcch_Immediate_Assignment() + alldata50;

			}

			signaling_obj.setFacch_Alerting(alldata0);
			signaling_obj.setFacch_Assignment_Complete(alldata1);
			signaling_obj.setFacch_Channel_Release(alldata2);
			signaling_obj.setFacch_CM_Service_Accept(alldata3);
			signaling_obj.setFacch_Connect(alldata4);
			signaling_obj.setFacch_Connect_Acknowledge(alldata5);
			signaling_obj.setFacch_Disconnect(alldata6);
			signaling_obj.setFacch_Release(alldata7);
			signaling_obj.setFacch_U_SABM(alldata8);
			signaling_obj.setFacch_U_UA(alldata9);
			signaling_obj.setFacch_Handover_Command(alldata10);
			signaling_obj.setFacch_U_DISC(alldata11);
			signaling_obj.setFacch_Uplink_Busy(alldata12);
			signaling_obj.setFacch_CM_service_Request(alldata13);
			signaling_obj.setFacch_Handover_Access(alldata14);
			signaling_obj.setFacch_Handover_Complete(alldata15);
			signaling_obj.setFacch_Physical_Information(alldata16);
			signaling_obj.setFacch_Release_Complete(alldata17);
			signaling_obj.setFacch_S_REJ(alldata18);
			signaling_obj.setSdcch_Assignment_Command(alldata19);
			signaling_obj.setSdcch_Authentication_Request(alldata20);
			signaling_obj.setSdcch_Authentication_Response(alldata21);
			signaling_obj.setSdcch_Call_Confirmed(alldata22);
			signaling_obj.setSdcch_Call_Proceeding(alldata23);
			signaling_obj.setSdcch_Channel_Release(alldata24);
			signaling_obj.setSdcch_Channel_Request(alldata25);
			signaling_obj.setSdcch_CM_Service_Accept(alldata26);
			signaling_obj.setSdcch_CM_service_Request(alldata27);
			signaling_obj.setSdcch_GPRS_Suspension_Request(alldata28);
			signaling_obj.setSdcch_Identity_Request(alldata29);
			signaling_obj.setSdcch_Identity_Response(alldata30);
			signaling_obj.setSdcch_Imsi_Detach_Indication(alldata31);
			signaling_obj.setSdcch_Location_Updating_Accept(alldata32);
			signaling_obj.setSdcch_Location_Updating_Reject(alldata33);
			signaling_obj.setSdcch_Location_Updating_Request(alldata34);
			signaling_obj.setSdcch_Paging_Response(alldata35);
			signaling_obj.setSdcch_Setup(alldata36);
			signaling_obj.setSdcch_U_DISC(alldata37);
			signaling_obj.setSdcch_U_DM(alldata38);
			signaling_obj.setSdcch_U_UA(alldata39);
			signaling_obj.setSdcch_L2_SUB_UNKNOWN(alldata40);
			signaling_obj.setSdcch_Disconnect(alldata41);
			signaling_obj.setSdcch_Release(alldata42);
			signaling_obj.setSdcch_CM_Service_Abort(alldata43);
			signaling_obj.setSdcch_CM_Service_Reject(alldata44);
			signaling_obj.setSdcch_Facility(alldata45);
			signaling_obj.setSdcch_I_SMS(alldata46);
			signaling_obj.setSdcch_Release_Complete(alldata47);
			signaling_obj.setSdcch_U_SABM(alldata48);
			signaling_obj.setSdcch_Immediate_Assignment_Reject(alldata49);
			signaling_obj.setSdcch_Immediate_Assignment(alldata50);
			signalingList_month.add(signaling_obj);

		}

		return signalingList_month;
	}

	public static List<ServiceCount> comboServiceListToMonth(int front_num, List<ServiceCount> serviceList_15min, String TimeGap) {
		if (serviceList_15min.size() == 0) {
			return serviceList_15min;
		}
		List<ServiceCount> serviceList_month = new ArrayList<>();

		for (int k = 0; k < front_num; k++) {

			ServiceCount service_obj = new ServiceCount();

			service_obj.setFrontProcessorId(serviceList_15min.get(k).getFrontProcessorId());
			if (TimeGap.equals("总计")) {
				service_obj.setDate("总计");
			} else {
				service_obj.setDate(serviceList_15min.get(k).getDate().substring(0, 7));
			}
			service_obj.setTimeStamp(serviceList_15min.get(k).getTimeStamp());
			DateFormat f = new SimpleDateFormat("MM-dd HH:mm");
			String str1 = f.format(serviceList_15min.get(k).getTimeStamp());
			String str2 = f.format(serviceList_15min.get(serviceList_15min.size() - 1).getTimeStamp() + 900000);

			service_obj.setTimeSlot(str1 + "-" + str2);

			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;
			int alldata37 = 0;
			int alldata38 = 0;
			int alldata39 = 0;
			int alldata40 = 0;
			int alldata41 = 0;
			int alldata42 = 0;
			int alldata43 = 0;
			int alldata44 = 0;
			int alldata45 = 0;
			int alldata46 = 0;
			int alldata47 = 0;
			int alldata48 = 0;
			int alldata49 = 0;
			int alldata50 = 0;
			int alldata51 = 0;
			int alldata52 = 0;
			int alldata53 = 0;
			int alldata54 = 0;
			int alldata55 = 0;
			int alldata56 = 0;
			int alldata57 = 0;
			int alldata58 = 0;
			int alldata59 = 0;
			int alldata60 = 0;
			int alldata61 = 0;
			int alldata62 = 0;


			for (int n = 0; n < serviceList_15min.size() / front_num; n++) {
				alldata0 = serviceList_15min.get(k + n * front_num).getALayer_Message159() + alldata0;
				alldata1 = serviceList_15min.get(k + n * front_num).getALayer_Message158() + alldata1;
				alldata2 = serviceList_15min.get(k + n * front_num).getALayer_Message157() + alldata2;
				alldata3 = serviceList_15min.get(k + n * front_num).getALayer_Message156() + alldata3;
				alldata4 = serviceList_15min.get(k + n * front_num).getALayer_Message155() + alldata4;
				alldata5 = serviceList_15min.get(k + n * front_num).getALayer_Message154() + alldata5;
				alldata6 = serviceList_15min.get(k + n * front_num).getALayer_Message153() + alldata6;
				alldata7 = serviceList_15min.get(k + n * front_num).getALayer_Message152() + alldata7;
				alldata8 = serviceList_15min.get(k + n * front_num).getALayer_Message151() + alldata8;
				alldata9 = serviceList_15min.get(k + n * front_num).getALayer_Message150() + alldata9;
				alldata10 = serviceList_15min.get(k + n * front_num).getALayer_Message149() + alldata10;
				alldata11 = serviceList_15min.get(k + n * front_num).getALayer_Message147() + alldata11;
				alldata12 = serviceList_15min.get(k + n * front_num).getALayer_Message146() + alldata12;
				alldata13 = serviceList_15min.get(k + n * front_num).getALayer_Message138() + alldata13;
				alldata14 = serviceList_15min.get(k + n * front_num).getALayer_Message137() + alldata14;
				alldata15 = serviceList_15min.get(k + n * front_num).getALayer_Message136() + alldata15;
				alldata16 = serviceList_15min.get(k + n * front_num).getALayer_Message132() + alldata16;
				alldata17 = serviceList_15min.get(k + n * front_num).getALayer_Message130() + alldata17;
				alldata18 = serviceList_15min.get(k + n * front_num).getALayer_Message129() + alldata18;
				alldata19 = serviceList_15min.get(k + n * front_num).getALayer_Message45() + alldata19;
				alldata20 = serviceList_15min.get(k + n * front_num).getALayer_Message43() + alldata20;
				alldata21 = serviceList_15min.get(k + n * front_num).getALayer_Message41() + alldata21;
				alldata22 = serviceList_15min.get(k + n * front_num).getALayer_Message40() + alldata22;
				alldata23 = serviceList_15min.get(k + n * front_num).getALayer_Message39() + alldata23;
				alldata24 = serviceList_15min.get(k + n * front_num).getALayer_Message38() + alldata24;
				alldata25 = serviceList_15min.get(k + n * front_num).getALayer_Message37() + alldata25;
				alldata26 = serviceList_15min.get(k + n * front_num).getALayer_Message34() + alldata26;
				alldata27 = serviceList_15min.get(k + n * front_num).getALayer_Message33() + alldata27;
				alldata28 = serviceList_15min.get(k + n * front_num).getALayer_Message32() + alldata28;
				alldata29 = serviceList_15min.get(k + n * front_num).getALayer_Message28() + alldata29;
				alldata30 = serviceList_15min.get(k + n * front_num).getALayer_Message27() + alldata30;
				alldata31 = serviceList_15min.get(k + n * front_num).getALayer_Message24() + alldata31;
				alldata32 = serviceList_15min.get(k + n * front_num).getALayer_Message18() + alldata32;
				alldata33 = serviceList_15min.get(k + n * front_num).getALayer_Message16() + alldata33;
				alldata34 = serviceList_15min.get(k + n * front_num).getALayer_Message15() + alldata34;
				alldata35 = serviceList_15min.get(k + n * front_num).getALayer_Message9() + alldata35;
				alldata36 = serviceList_15min.get(k + n * front_num).getALayer_Message8() + alldata36;
				alldata37 = serviceList_15min.get(k + n * front_num).getALayer_Message6() + alldata37;
				alldata38 = serviceList_15min.get(k + n * front_num).getALayer_Message3() + alldata38;
				alldata39 = serviceList_15min.get(k + n * front_num).getSLayer_AR() + alldata39;
				alldata40 = serviceList_15min.get(k + n * front_num).getSLayer_AU1() + alldata40;
				alldata41 = serviceList_15min.get(k + n * front_num).getSLayer_AU2() + alldata41;
				alldata42 = serviceList_15min.get(k + n * front_num).getSLayer_AU3() + alldata42;
				alldata43 = serviceList_15min.get(k + n * front_num).getSLayer_DI() + alldata43;
				alldata44 = serviceList_15min.get(k + n * front_num).getSLayer_DT() + alldata44;
				alldata45 = serviceList_15min.get(k + n * front_num).getTLayer_DT() + alldata45;
				alldata46 = serviceList_15min.get(k + n * front_num).getTLayer_AK() + alldata46;
				alldata47 = serviceList_15min.get(k + n * front_num).getTLayer_DR() + alldata47;
				alldata48 = serviceList_15min.get(k + n * front_num).getTLayer_Invalid() + alldata48;
				alldata49 = serviceList_15min.get(k + n * front_num).getTLayer_CR() + alldata49;
				alldata50 = serviceList_15min.get(k + n * front_num).getTLayer_CC() + alldata50;
				alldata51 = serviceList_15min.get(k + n * front_num).getTLayer_DC() + alldata51;
				alldata52 = serviceList_15min.get(k + n * front_num).getTLayer_ER() + alldata52;
				alldata53 = serviceList_15min.get(k + n * front_num).getHdlc_SREJ() + alldata53;
				alldata54 = serviceList_15min.get(k + n * front_num).getHdlc_SABME() + alldata54;
				alldata55 = serviceList_15min.get(k + n * front_num).getHdlc_UA() + alldata55;
				alldata56 = serviceList_15min.get(k + n * front_num).getHdlc_False() + alldata56;
				alldata57 = serviceList_15min.get(k + n * front_num).getHdlc_invalid() + alldata57;
				alldata58 = serviceList_15min.get(k + n * front_num).getHdlc_DISC() + alldata58;
				alldata59 = serviceList_15min.get(k + n * front_num).getHdlc_REJ() + alldata59;
				alldata60 = serviceList_15min.get(k + n * front_num).getHdlc_FRMR() + alldata60;
				alldata61 = serviceList_15min.get(k + n * front_num).getHdlc_DM() + alldata61;
				alldata62 = serviceList_15min.get(k + n * front_num).getHdlc_RNR() + alldata62;

			}

			service_obj.setALayer_Message159(alldata0);
			service_obj.setALayer_Message158(alldata1);
			service_obj.setALayer_Message157(alldata2);
			service_obj.setALayer_Message156(alldata3);
			service_obj.setALayer_Message155(alldata4);
			service_obj.setALayer_Message154(alldata5);
			service_obj.setALayer_Message153(alldata6);
			service_obj.setALayer_Message152(alldata7);
			service_obj.setALayer_Message151(alldata8);
			service_obj.setALayer_Message150(alldata9);
			service_obj.setALayer_Message149(alldata10);
			service_obj.setALayer_Message147(alldata11);
			service_obj.setALayer_Message146(alldata12);
			service_obj.setALayer_Message138(alldata13);
			service_obj.setALayer_Message137(alldata14);
			service_obj.setALayer_Message136(alldata15);
			service_obj.setALayer_Message132(alldata16);
			service_obj.setALayer_Message130(alldata17);
			service_obj.setALayer_Message129(alldata18);
			service_obj.setALayer_Message45(alldata19);
			service_obj.setALayer_Message43(alldata20);
			service_obj.setALayer_Message41(alldata21);
			service_obj.setALayer_Message40(alldata22);
			service_obj.setALayer_Message39(alldata23);
			service_obj.setALayer_Message38(alldata24);
			service_obj.setALayer_Message37(alldata25);
			service_obj.setALayer_Message34(alldata26);
			service_obj.setALayer_Message33(alldata27);
			service_obj.setALayer_Message32(alldata28);
			service_obj.setALayer_Message28(alldata29);
			service_obj.setALayer_Message27(alldata30);
			service_obj.setALayer_Message24(alldata31);
			service_obj.setALayer_Message18(alldata32);
			service_obj.setALayer_Message16(alldata33);
			service_obj.setALayer_Message15(alldata34);
			service_obj.setALayer_Message9(alldata35);
			service_obj.setALayer_Message8(alldata36);
			service_obj.setALayer_Message6(alldata37);
			service_obj.setALayer_Message3(alldata38);
			service_obj.setSLayer_AR(alldata39);
			service_obj.setSLayer_AU1(alldata40);
			service_obj.setSLayer_AU2(alldata41);
			service_obj.setSLayer_AU3(alldata42);
			service_obj.setSLayer_DI(alldata43);
			service_obj.setSLayer_DT(alldata44);
			service_obj.setTLayer_DT(alldata45);
			service_obj.setTLayer_AK(alldata46);
			service_obj.setTLayer_DR(alldata47);
			service_obj.setTLayer_Invalid(alldata48);
			service_obj.setTLayer_CR(alldata49);
			service_obj.setTLayer_CC(alldata50);
			service_obj.setTLayer_DC(alldata51);
			service_obj.setTLayer_ER(alldata52);
			service_obj.setHdlc_SREJ(alldata53);
			service_obj.setHdlc_SABME(alldata54);
			service_obj.setHdlc_UA(alldata55);
			service_obj.setHdlc_False(alldata56);
			service_obj.setHdlc_invalid(alldata57);
			service_obj.setHdlc_DISC(alldata58);
			service_obj.setHdlc_REJ(alldata59);
			service_obj.setHdlc_FRMR(alldata60);
			service_obj.setHdlc_DM(alldata61);
			service_obj.setHdlc_RNR(alldata62);

			serviceList_month.add(service_obj);

		}
		return serviceList_month;
	}

	public static List<GPRSDefaultCount> comboGPRSDefaultListToMonth(int front_num, List<GPRSDefaultCount> gprsDefaultList_15min, String TimeGap) {
		if (gprsDefaultList_15min.size() == 0) {
			return gprsDefaultList_15min;
		}
		List<GPRSDefaultCount> gprsDefaultList_month = new ArrayList<>();

		for (int k = 0; k < front_num; k++) {
			GPRSDefaultCount gprsDefault_obj = new GPRSDefaultCount();
			gprsDefault_obj.setFrontProcessorId(gprsDefaultList_15min.get(k).getFrontProcessorId());
			if (TimeGap.equals("总计")) {
				gprsDefault_obj.setDate("总计");
			} else {
				gprsDefault_obj.setDate(gprsDefaultList_15min.get(k).getDate().substring(0, 7));
			}
			gprsDefault_obj.setTimeStamp(gprsDefaultList_15min.get(k).getTimeStamp());
			DateFormat f = new SimpleDateFormat("MM-dd HH:mm");
			String str1 = f.format(gprsDefaultList_15min.get(k).getTimeStamp());
			String str2 = f.format(gprsDefaultList_15min.get(gprsDefaultList_15min.size() - 1).getTimeStamp() + 900000);

			gprsDefault_obj.setTimeSlot(str1 + "-" + str2);

			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;		
			
			for (int n = 0; n < gprsDefaultList_15min.size() / front_num; n++) {
				alldata0 = gprsDefaultList_15min.get(k + n * front_num).getAttach_request() + alldata0;
				alldata1 = gprsDefaultList_15min.get(k + n * front_num).getAttach_accept() + alldata1;
				alldata2 = gprsDefaultList_15min.get(k + n * front_num).getAttach_complete() + alldata2;
				alldata3 = gprsDefaultList_15min.get(k + n * front_num).getAttach_reject() + alldata3;
				alldata4 = gprsDefaultList_15min.get(k + n * front_num).getDetach_request() + alldata4;
				alldata5 = gprsDefaultList_15min.get(k + n * front_num).getDetach_accept() + alldata5;
				alldata6 = gprsDefaultList_15min.get(k + n * front_num).getPTMSI_reallocation_command() + alldata6;
				alldata7 = gprsDefaultList_15min.get(k + n * front_num).getPTMSI_reallocation_complete() + alldata7;
				alldata8 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_ciphering_request() + alldata8;
				alldata9 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_Ciphering_Failure()+ alldata9;
				alldata10 = gprsDefaultList_15min.get(k + n * front_num).getAuthentication_and_ciphering_reject() + alldata10;
				alldata11 = gprsDefaultList_15min.get(k + n * front_num).getIdentity_request() + alldata11;
				alldata12 = gprsDefaultList_15min.get(k + n * front_num).getIdentity_response() + alldata12;
				alldata13 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_request() + alldata13;
				alldata14 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_accept() + alldata14;
				alldata15 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_complete() + alldata15;
				alldata16 = gprsDefaultList_15min.get(k + n * front_num).getRouting_area_update_reject() + alldata16;
				alldata17 = gprsDefaultList_15min.get(k + n * front_num).getGMM_Status() + alldata17;
				alldata18 = gprsDefaultList_15min.get(k + n * front_num).getGMM_Information() + alldata18;
				alldata19 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_request() + alldata19;
				alldata20 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_accept() + alldata20;
				alldata21 = gprsDefaultList_15min.get(k + n * front_num).getActivate_PDP_context_reject()+ alldata21;
				alldata22 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Request() + alldata22;
				alldata23 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Accept() + alldata23;
				alldata24 = gprsDefaultList_15min.get(k + n * front_num).getActivate_Secondary_PDP_Context_Reject() + alldata24;
				alldata25 = gprsDefaultList_15min.get(k + n * front_num).getRequest_PDP_context_activation() + alldata25;
				alldata26 = gprsDefaultList_15min.get(k + n * front_num).getRequest_PDP_context_activation_reject() + alldata26;
				alldata27 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_request_N_to_M() + alldata27;
				alldata28 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_request_M_to_N() + alldata28;
				alldata29 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_accept_N_to_M() + alldata29;
				alldata30 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_context_accept_M_to_N() + alldata30;
				alldata31 = gprsDefaultList_15min.get(k + n * front_num).getModify_PDP_Context_Reject() + alldata31;
				alldata32 = gprsDefaultList_15min.get(k + n * front_num).getDeactivate_PDP_context_request() + alldata32;
				alldata33 = gprsDefaultList_15min.get(k + n * front_num).getDeactivate_PDP_context_accept() + alldata33;
				alldata34 = gprsDefaultList_15min.get(k + n * front_num).getRequest_Secondary_PDP_Context_Activation() + alldata34;
				alldata35 = gprsDefaultList_15min.get(k + n * front_num).getRequest_Secondary_PDP_Context_Activation_Reject() + alldata35;
				alldata36 = gprsDefaultList_15min.get(k + n * front_num).getNotification() + alldata36;


			}

			gprsDefault_obj.setAttach_request(alldata0);
			gprsDefault_obj.setAttach_accept(alldata1);
			gprsDefault_obj.setAttach_complete(alldata2);
			gprsDefault_obj.setAttach_reject(alldata3);
			gprsDefault_obj.setDetach_request(alldata4);
			gprsDefault_obj.setDetach_accept(alldata5);
			gprsDefault_obj.setPTMSI_reallocation_command(alldata6);
			gprsDefault_obj.setPTMSI_reallocation_complete(alldata7);
			gprsDefault_obj.setAuthentication_and_ciphering_request(alldata8);		
			gprsDefault_obj.setAuthentication_and_Ciphering_Failure(alldata9);
			gprsDefault_obj.setAuthentication_and_ciphering_reject(alldata10);
			gprsDefault_obj.setIdentity_request(alldata11);
			gprsDefault_obj.setIdentity_response(alldata12);
			gprsDefault_obj.setRouting_area_update_request(alldata13);
			gprsDefault_obj.setRouting_area_update_accept(alldata14);
			gprsDefault_obj.setRouting_area_update_complete(alldata15);
			gprsDefault_obj.setRouting_area_update_reject(alldata16);
			gprsDefault_obj.setGMM_Status(alldata17);
			gprsDefault_obj.setGMM_Information(alldata18);
			gprsDefault_obj.setActivate_PDP_context_request(alldata19);
			gprsDefault_obj.setActivate_PDP_context_accept(alldata20);
			gprsDefault_obj.setActivate_PDP_context_reject(alldata21);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Request(alldata22);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Accept(alldata23);
			gprsDefault_obj.setActivate_Secondary_PDP_Context_Reject(alldata24);
			gprsDefault_obj.setRequest_PDP_context_activation(alldata25);
			gprsDefault_obj.setRequest_PDP_context_activation_reject(alldata26);
			gprsDefault_obj.setModify_PDP_context_request_N_to_M(alldata27);
			gprsDefault_obj.setModify_PDP_context_request_M_to_N(alldata28);
			gprsDefault_obj.setModify_PDP_context_accept_N_to_M(alldata29);
			gprsDefault_obj.setModify_PDP_context_accept_M_to_N(alldata30);
			gprsDefault_obj.setModify_PDP_Context_Reject(alldata31);
			gprsDefault_obj.setDeactivate_PDP_context_request(alldata32);
			gprsDefault_obj.setDeactivate_PDP_context_accept(alldata33);
			gprsDefault_obj.setRequest_PDP_context_activation(alldata34);
			gprsDefault_obj.setRequest_PDP_context_activation_reject(alldata35);
			gprsDefault_obj.setNotification(alldata36);
			gprsDefaultList_month.add(gprsDefault_obj);

		}
		return gprsDefaultList_month;
	}
	
	public static List<GPRSFullCount> comboGPRSFullListToMonth(int front_num, List<GPRSFullCount> gprsFullList_15min, String TimeGap) {
		if (gprsFullList_15min.size() == 0) {
			return gprsFullList_15min;
		}
		List<GPRSFullCount> gprsFullList_month = new ArrayList<>();

		for (int k = 0; k < front_num; k++) {

			GPRSFullCount gprsFull_obj = new GPRSFullCount();

			gprsFull_obj.setFrontProcessorId(gprsFullList_15min.get(k).getFrontProcessorId());
			if (TimeGap.equals("总计")) {
				gprsFull_obj.setDate("总计");
			} else {
				gprsFull_obj.setDate(gprsFullList_15min.get(k).getDate().substring(0, 7));
			}
			gprsFull_obj.setTimeStamp(gprsFullList_15min.get(k).getTimeStamp());
			DateFormat f = new SimpleDateFormat("MM-dd HH:mm");
			String str1 = f.format(gprsFullList_15min.get(k).getTimeStamp());
			String str2 = f.format(gprsFullList_15min.get(gprsFullList_15min.size() - 1).getTimeStamp() + 900000);

			gprsFull_obj.setTimeSlot(str1 + "-" + str2);

			int alldata0 = 0;
			int alldata1 = 0;
			int alldata2 = 0;
			int alldata3 = 0;
			int alldata4 = 0;
			int alldata5 = 0;
			int alldata6 = 0;
			int alldata7 = 0;
			int alldata8 = 0;
			int alldata9 = 0;
			int alldata10 = 0;
			int alldata11 = 0;
			int alldata12 = 0;
			int alldata13 = 0;
			int alldata14 = 0;
			int alldata15 = 0;
			int alldata16 = 0;
			int alldata17 = 0;
			int alldata18 = 0;
			int alldata19 = 0;
			int alldata20 = 0;
			int alldata21 = 0;
			int alldata22 = 0;
			int alldata23 = 0;
			int alldata24 = 0;
			int alldata25 = 0;
			int alldata26 = 0;
			int alldata27 = 0;
			int alldata28 = 0;
			int alldata29 = 0;
			int alldata30 = 0;
			int alldata31 = 0;
			int alldata32 = 0;
			int alldata33 = 0;
			int alldata34 = 0;
			int alldata35 = 0;
			int alldata36 = 0;
			int alldata37 = 0;
			int alldata38 = 0;
			int alldata39 = 0;
			int alldata40 = 0;
			int alldata41 = 0;

			for (int n = 0; n < gprsFullList_15min.size() / front_num; n++) {
				alldata0 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Query_Qequest() + alldata0;
				alldata1 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Query_Request() + alldata1;
				alldata2 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Update_Request() + alldata2;
				alldata3 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Update_Request() + alldata3;
				alldata4 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Update_Response() + alldata4;
				alldata5 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Update_Response() + alldata5;
				alldata6 = gprsFullList_15min.get(k + n * front_num).getGRIS_IP_Query_Response() + alldata6;
				alldata7 = gprsFullList_15min.get(k + n * front_num).getMGRIS_IP_Query_Response() + alldata7;
				alldata8 = gprsFullList_15min.get(k + n * front_num).getGRIS_Detect_Request() + alldata8;
				alldata9 = gprsFullList_15min.get(k + n * front_num).getGRIS_Detect_Response() + alldata9;
				alldata10 = gprsFullList_15min.get(k + n * front_num).getTrainNo_Send() + alldata10;
				alldata11 = gprsFullList_15min.get(k + n * front_num).getTrain_Stop() + alldata11;
				alldata12 = gprsFullList_15min.get(k + n * front_num).getTrain_Start() + alldata12;
				alldata13 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send_All() + alldata13;
				alldata14 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send() + alldata14;
				alldata15 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Resend() + alldata15;
				alldata16 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send_All() + alldata16;
				alldata17 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send() + alldata17;
				alldata18 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Resend() + alldata18;
				alldata19 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send_All() + alldata19;
				alldata20 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send() + alldata20;
				alldata21 = gprsFullList_15min.get(k + n * front_num).getDispatch_Resend() + alldata21;
				alldata22 = gprsFullList_15min.get(k + n * front_num).getRed_License_Send() + alldata22;
				alldata23 = gprsFullList_15min.get(k + n * front_num).getGreen_License_Send() + alldata23;
				alldata24 = gprsFullList_15min.get(k + n * front_num).getTrain_Work_Command() + alldata24;
				alldata25 = gprsFullList_15min.get(k + n * front_num).getTrain_Work_Confirmed() + alldata25;
				alldata26 = gprsFullList_15min.get(k + n * front_num).getInspection_Detect() + alldata26;
				alldata27 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm_All() + alldata27;
				alldata28 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm() + alldata28;
				alldata29 = gprsFullList_15min.get(k + n * front_num).getManu_Total_Dispatch_Confirm_All() + alldata29;
				alldata30 = gprsFullList_15min.get(k + n * front_num).getManu_Total_Dispatch_Confirm() + alldata30;
				alldata31 = gprsFullList_15min.get(k + n * front_num).getTotal_Dispatch_Send_Success() + alldata31;
				alldata32 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm_All() + alldata32;
				alldata33 = gprsFullList_15min.get(k + n * front_num).getAuto_Dispatch_Confirm() + alldata33;
				alldata34 = gprsFullList_15min.get(k + n * front_num).getManu_Dispatch_Confirm_all() + alldata34;
				alldata35 = gprsFullList_15min.get(k + n * front_num).getManu_Dispatch_Confirm() + alldata35;
				alldata36 = gprsFullList_15min.get(k + n * front_num).getDispatch_Send_Success() + alldata36;
				alldata37 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_AutoComfirm_All() + alldata37;
				alldata38 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_AutoComfirm() + alldata38;
				alldata39 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_ManuComfirm_All() + alldata39;
				alldata40 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_ManuComfirm() + alldata40;
				alldata41 = gprsFullList_15min.get(k + n * front_num).getRoute_Prediction_Send_Success() + alldata41;

			}

			gprsFull_obj.setGRIS_IP_Query_Qequest(alldata0);
			gprsFull_obj.setMGRIS_IP_Query_Request(alldata1);
			gprsFull_obj.setGRIS_IP_Update_Request(alldata2);
			gprsFull_obj.setMGRIS_IP_Update_Request(alldata3);
			gprsFull_obj.setGRIS_IP_Update_Response(alldata4);
			gprsFull_obj.setMGRIS_IP_Update_Response(alldata5);
			gprsFull_obj.setGRIS_IP_Query_Response(alldata6);
			gprsFull_obj.setMGRIS_IP_Query_Response(alldata7);
			gprsFull_obj.setGRIS_Detect_Request(alldata8);
			gprsFull_obj.setGRIS_Detect_Response(alldata9);
			gprsFull_obj.setTrainNo_Send(alldata10);
			gprsFull_obj.setTrain_Stop(alldata11);
			gprsFull_obj.setTrain_Start(alldata12);
			gprsFull_obj.setTotal_Dispatch_Send_All(alldata13);
			gprsFull_obj.setTotal_Dispatch_Send(alldata14);
			gprsFull_obj.setTotal_Dispatch_Resend(alldata15);
			gprsFull_obj.setRoute_Prediction_Send_All(alldata16);
			gprsFull_obj.setRoute_Prediction_Send(alldata17);
			gprsFull_obj.setRoute_Prediction_Resend(alldata18);
			gprsFull_obj.setDispatch_Send_All(alldata19);
			gprsFull_obj.setDispatch_Send(alldata20);
			gprsFull_obj.setDispatch_Resend(alldata21);
			gprsFull_obj.setRed_License_Send(alldata22);
			gprsFull_obj.setGreen_License_Send(alldata23);
			gprsFull_obj.setTrain_Work_Command(alldata24);
			gprsFull_obj.setTrain_Work_Confirmed(alldata25);
			gprsFull_obj.setInspection_Detect(alldata26);
			gprsFull_obj.setAuto_Dispatch_Confirm_All(alldata27);
			gprsFull_obj.setAuto_Dispatch_Confirm(alldata28);
			gprsFull_obj.setManu_Total_Dispatch_Confirm_All(alldata29);
			gprsFull_obj.setManu_Total_Dispatch_Confirm(alldata30);
			gprsFull_obj.setTotal_Dispatch_Send_Success(alldata31);
			gprsFull_obj.setAuto_Dispatch_Confirm_All(alldata32);
			gprsFull_obj.setAuto_Dispatch_Confirm(alldata33);
			gprsFull_obj.setManu_Dispatch_Confirm_all(alldata34);
			gprsFull_obj.setManu_Dispatch_Confirm(alldata35);
			gprsFull_obj.setDispatch_Send_Success(alldata36);
			gprsFull_obj.setRoute_Prediction_AutoComfirm_All(alldata37);
			gprsFull_obj.setRoute_Prediction_AutoComfirm(alldata38);
			gprsFull_obj.setRoute_Prediction_ManuComfirm_All(alldata39);
			gprsFull_obj.setRoute_Prediction_ManuComfirm(alldata40);
			gprsFull_obj.setRoute_Prediction_Send_Success(alldata41);


			gprsFullList_month.add(gprsFull_obj);

		}
		return gprsFullList_month;
	}
	
	
	
	public static List<Index> comboIndex(int front_num, List<Index> subindexList) {
		List<Index> inList = new ArrayList<>();
		DecimalFormat df = new DecimalFormat("0.00");
		for (int i = 0; i < subindexList.size(); i = i + front_num) {
			Index subIndex = new Index();
			subIndex.setBsCI("合并");
			subIndex.setBsName("合并");
			subIndex.setDate(subindexList.get(i).getDate());
			subIndex.setTimeslot(subindexList.get(i).getTimeslot());
			subIndex.setIndex_name(subindexList.get(i).getIndex_name());
			int num = 0;
			int deno = 0;
			for (int j = 0; j < front_num; j++) {
				num = Integer.parseInt(subindexList.get(i + j).getIndex_num()) + num;
				if (!subindexList.get(i + j).getIndex_deno().equals("无")) {
					deno = Integer.parseInt(subindexList.get(i + j).getIndex_deno()) + deno;
				} else {
					deno = -1;

				}

			}
			subIndex.setIndex_num(num + "");
			if (deno == -1) {
				subIndex.setIndex_deno("无");

			} else {
				subIndex.setIndex_deno(deno + "");
			}

			if (deno == 0) {
				subIndex.setIndex_value("无");
			} else if (deno == -1) {
				subIndex.setIndex_value(num + "");
			} else {
				String num_result = df.format((float) 100 * num / deno);
				subIndex.setIndex_value(num_result + "%");
			}
			inList.add(subIndex);
		}
		return inList;
	}
}

